Files
Intune/dump/Reboot-Notification-Dialog.ps1

13 lines
553 B
PowerShell

$computer = "dfnp002"
$namespace = "ROOT\ccm\Policy\Machine\ActualConfig"
$classname = "CCM_RebootSettings"
Write-Output "====================================="
Write-Output "COMPUTER : $computer "
Write-Output "CLASS : $classname "
Write-Output "====================================="
Get-WmiObject -Class $classname -ComputerName $computer -Namespace $namespace |
Select-Object * -ExcludeProperty PSComputerName, Scope, Path, Options, ClassPath, Properties, SystemProperties, Qualifiers, Site, Container |
Format-List -Property [a-z]*