Set-ItemProperty `
-Path 'HKLM:\SYSTEM\CurrentControlSet\Services\1C:Enterprise 8.3 Server Agent (x86-64)' `
-Name Type `
-Value 0x10
Get-ItemProperty `
'HKLM:\SYSTEM\CurrentControlSet\Services\1C:Enterprise 8.3 Server Agent (x86-64)' |
Select-Object Type
Restart-Service '1C:Enterprise 8.3 Server Agent (x86-64)'
Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Services' |
ForEach-Object {
$p = Get-ItemProperty $_.PSPath -ErrorAction SilentlyContinue
if ($p.Type -band 0x100) {
[PSCustomObject]@{
Service = $_.PSChildName
Type = ('0x{0:X}' -f $p.Type)
}
}
}