- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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
Advertisements
To Continue Learning Please Login
Login with Google