Get startup type of Windows service using PowerShell

后端 未结 10 2453
小蘑菇
小蘑菇 2020-12-23 19:22

How can I get the Windows service startup type using PowerShell and not using WMI?

I looked inside the Get-Service command, and it does not provide something to disp

10条回答
  •  情深已故
    2020-12-23 20:04

    If you update to PowerShell 5 you can query all of the services on the machine and display Name and StartType and sort it by StartType for easy viewing:

    Get-Service |Select-Object -Property Name,StartType |Sort-Object -Property StartType
    

提交回复
热议问题