Уверен, что на клиенте, но не могу понять как посмотреть это
Как то так
$MWType = @{
'1' = 'All Deployment Service Window'
'2' = 'Program Service Window'
'3' = 'Required Service Window'
'4' = 'Software Update Service Window'
'5' = 'Task Sequences Service Window'
'6' = 'Corresponds to non-working hours'
}
Get-WmiObject -Class CCM_ServiceWindow -Namespace 'ROOT\ccm\ClientSDK' |
Select-Object @{ n = "ID"; e = { $_.ID } },
@{ n = "Duration (Sec)"; e = { $_.Duration } },
@{ n = "StartTime"; e = { [System.Management.ManagementDateTimeConverter]::ToDateTime($_.StartTime) } },
@{ n = "EndTime"; e = { [System.Management.ManagementDateTimeConverter]::ToDateTime($_.EndTime) } },
@{ n = "Type"; e = { $MWType[$_.Type.ToString()] } },
@{ n = "TypeInt"; e = { $_.Type } } | Format-Table -AutoSize
грязно с типами [uint] сделано, лень разбираться )