Get startup type of Windows service using PowerShell

后端 未结 10 2437
小蘑菇
小蘑菇 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条回答
  •  萌比男神i
    2020-12-23 20:01

    You can use also:

    (Get-Service 'winmgmt').StartType
    

    It returns just the startup type, for example, disabled.

提交回复
热议问题