Powershell Services

Get a listing of all services that are set to 'Automatic' startup that is currently 'Stopped' 

Get-Service | Where-Object {$_.StartType -eq 'Automatic'} | where-object {$_.Status -eq 'Stopped'} 

 

 

Attempt to start the services that are not currently running that are set to automatic.  (limited success) 

Get-Service | Where-Object {$_.StartType -eq 'Automatic'} | where-object {$_.Status -eq 'Stopped'} | Start-Service 

 

 

Get listing of all services 

Get-Service  

 

Get all properties of services 

get-service | get-member 

 


Revision #1
Created 23 December 2023 04:45:30 by ColtM
Updated 13 June 2024 01:28:01 by ColtM