Friday 2 March 2012

Listing Windows Services from a command prompt

For a simple list of windows services you can run the following command from a command prompt...

> net start

(also net stop "my service name" will stop the service)

However for more detailed information on the services on your machine, you can run the %windir%\system32\sc.exe. Due to the amount of detailed output that comes out as well, it's probably worth piping this through a more command as follows...

> sc query | more

No comments:

Post a Comment

How to find the last interactive logons in Windows using PowerShell

Use the following powershell script to find the last users to login to a box since a given date, in this case the 21st April 2022 at 12pm un...