Quantcast
Viewing all articles
Browse latest Browse all 36188

PowerTip: Find the Start Mode and Startup Account for Services

Summary: Use Windows PowerShell to find the start mode and startup account used by services.

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Question
 How can I use Windows PowerShell to find the startup account and the start mode of services on my system?

Image may be NSFW.
Clik here to view.
Hey, Scripting Guy! Answer
 You need to use WMI and query the Win32_Service class.

With Windows PowerShell 3.0, use the Get-CimInstance cmdlet, as shown here.

PS C:\> Get-CimInstance -ClassName win32_service -Property startmode, startname | sel

ect startname, startmode, name

With Windows PowerShell 1.0 and 2.0, use the Get-WmiObject cmdlet to query the Win32_Service WMI class, as shown here.

PS C:\> Get-WmiObject -Class win32_service -Property startmode, startname | select st

artname, startmode, name

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>