Get startup type of Windows service using PowerShell

后端 未结 10 2450
小蘑菇
小蘑菇 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:11

    In PowerShell you can use the command Set-Service:

    Set-Service -Name Winmgmt -StartupType Manual
    

    I haven't found a PowerShell command to view the startup type though. One would assume that the command Get-Service would provide that, but it doesn't seem to.

提交回复
热议问题