How to get services based on start-type in PowerShell?


Below commands are useful to filter services based on their start types (Automatic, Manual or Disabled).

Command

To get the Automatic start-type service. These services are started automatically when the system starts.

Get-Service | where{$_.StartType -eq "Automatic"} | Select Name, Starttype

Output

SystemEventsBroker          Automatic
TeraCopyService             Automatic
Themes                      Automatic
TrkWks                      Automatic
UserManager                 Automatic
UsoSvc                      Automatic
VMUSBArbService             Automatic
WavesSysSvc                 Automatic
Wcmsvc                      Automatic
Winmgmt                     Automatic
WlanSvc                     Automatic
WpnService                  Automatic
WpnUserService_158379       Automatic
wscsvc                      Automatic
WSearch                     Automatic
ZeroConfigService           Automatic

Command

To get the Manual start-type service. These services need to start manually and they are not started automatically when the system starts. They can be triggered by users or applications.

Get-Service | where{$_.StartType -eq "Manual"} | Select Name, Starttype

Output

WinRM                                                     Manual
wisvc                                                     Manual
wlidsvc                                                   Manual
wlpasvc                                                   Manual
WManSvc                                                   Manual
wmiApSrv                                                  Manual
WMPNetworkSvc                                             Manual
workfolderssvc                                            Manual
WpcMonSvc                                                 Manual
WPDBusEnum                                                Manual

Command

To get the Disabled start-type service. These types of services are disabled by the user or system administrators when they are not useful.

Get-Service | where{$_.StartType -eq "Disabled"} | Select Name, Starttype

Output

Name              StartType
----              ---------
AppVClient         Disabled
NetTcpPortSharing  Disabled
RemoteAccess       Disabled
RemoteRegistry     Disabled
shpamsvc           Disabled
ssh-agent          Disabled
svcdemo            Disabled
tzautoupdate       Disabled
UevAgentService    Disabled

Updated on: 22-Jan-2020

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements