get-Service
2026-07-27win+x PowerShell
1、Get-Service -Name "test" | Set-Service -StartupType Disabled|Manual|Automatic
Get-Service -Name w32time | Select-Object Name, Status, StartType
Set-Service -Name w32time -StartupType Automatic
Get-Service -Name "Spooler" | Select-Object Name, StartType
2、google
Get-Service -Name "cloudbase-init" | Set-Service -StartupType Manual
Get-Service -Name "gupdate" | Set-Service -StartupType Manual
Get-Service -Name "GoogleUpdaterInternalService152.0.7933.0" | Set-Service -StartupType Manual
Get-Service -Name "GoogleUpdaterService152.0.7933.0" | Set-Service -StartupType Manual
Get-Service -Name "cloudbase-init" | Set-Service -StartupType Disabled
Get-Service -Name "gupdate" | Set-Service -StartupType Disabled
Get-Service -Name "Google*" | Set-Service -StartupType Disabled
Get-Service -Name "cloudbase-init" | Select-Object Name, StartType
Get-Service -Name "gupdate" | Select-Object Name, StartType
Get-Service -Name "Google*" | Select-Object Name, StartType
3、zabbix
Get-service "zabbix agent 2" | Start-Service
Get-service "zabbix agent 2"