Legacy.psm1 - Add note telling people not to use function (#82076)

pull/82083/head
Jordan Borean 7 months ago committed by GitHub
parent fb8ede22e1
commit f5d7dc1a97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -372,8 +372,11 @@ Function Get-PendingRebootStatus {
<#
.SYNOPSIS
Check if reboot is required, if so notify CA.
Function returns true if computer has a pending reboot
#>
Function returns true if computer has a pending reboot.
People should not be using this function, it is kept
just for backwards compatibility.
#>
$featureData = Invoke-CimMethod -EA Ignore -Name GetServerFeature -Namespace root\microsoft\windows\servermanager -Class MSFT_ServerManagerTasks
$regData = Get-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" "PendingFileRenameOperations" -EA Ignore
$CBSRebootStatus = Get-ChildItem "HKLM:\\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing" -ErrorAction SilentlyContinue |

Loading…
Cancel
Save