Invoke-CimMethod
Invoke-CimMethod -ClassName 'CCM_ClientUtilities' `
-CimSession $Computer.CimSession `
-MethodName 'DetermineIfRebootPending' `
-Namespace 'ROOT\ccm\ClientSDK'
DisableHideTime : 01/01/1970 00:00:00
InGracePeriod : False
IsHardRebootPending : False
NotifyUI : False
RebootDeadline : 01/01/1970 00:00:00
RebootPending : True
ReturnValue : 0
PSComputerName :
Get-ItemProperty
Invoke-CimMethod -ClassName 'StdRegProv ' `
-CimSession $Computer.CimSession `
-MethodName 'GetMultiStringValue' `
-Namespace 'ROOT\Cimv2' `
-Arguments @{hDefKey=[uint32]2147483650;
sSubKeyName="SYSTEM\CurrentControlSet\Control\Session Manager";
sValueName="PendingFileRenameOperations"}
sValue
-----
{\??\C:\ProgramData\Microsoft\...