前言
Windows禁用AliAqsInstall相关服务,该方法适用于禁用Windows任何服务
正文
- 进入恢复模式获得最高权限
- 禁用
Alibaba Security Aegis Detect Service服务
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| $regPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Alibaba Security Aegis Detect Service"
$acl = Get-Acl -Path $regPath
$adminRule = New-Object System.Security.AccessControl.RegistryAccessRule( [System.Security.Principal.WindowsIdentity]::GetCurrent().Name, "FullControl", @("ContainerInherit", "ObjectInherit"), "None", "Allow" )
$acl.SetAccessRule($adminRule) Set-Acl -Path $regPath -AclObject $acl
Set-ItemProperty -Path $regPath -Name Start -Value 3 -Type DWord -Force
Get-ItemProperty -Path $regPath | Select-Object Name, Start
|
- 禁用
Alibaba Security Aegis Update Service服务
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| $regPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Alibaba Security Aegis Update Service"
$acl = Get-Acl -Path $regPath
$adminRule = New-Object System.Security.AccessControl.RegistryAccessRule( [System.Security.Principal.WindowsIdentity]::GetCurrent().Name, "FullControl", @("ContainerInherit", "ObjectInherit"), "None", "Allow" )
$acl.SetAccessRule($adminRule) Set-Acl -Path $regPath -AclObject $acl
Set-ItemProperty -Path $regPath -Name Start -Value 3 -Type DWord -Force
Get-ItemProperty -Path $regPath | Select-Object Name, Start
|
完成