Загрузка данных


Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Services' |
ForEach-Object {
    $p = Get-ItemProperty $_.PSPath -ErrorAction SilentlyContinue
    if ($p.Type -band 0x100) {
        [PSCustomObject]@{
            Service = $_.PSChildName
            DisplayName = $p.DisplayName
            ImagePath = $p.ImagePath
            Type = ('0x{0:X}' -f $p.Type)
        }
    }
} | Format-Table -AutoSize