Windows services may transition into different statusses in runtime. But when the system is restarted they have Service Startup Type
that is used to set if the service will be started automtically or not after the Windows start. We can use different commands to get service startup type using the PowerShell command line interface.
Windows Service Startup Types
- Automatic mode is used to start a service automatically when Windows starts.
- Manual mode is used to start a service manually when Windows starts.
- Disabled mode is used to prevent a service start when Windows starts.
Get Service Startup Type Using Get-Service Command
The Get-Service command can be used to display the service startup type in PowerShell. We can specify the service’s full name or some part of the name to filter service or multiple services.
PS> Get-Service "*win*" | select -property name,starttype

Get Service Startup Type Using Wmi Command
The wmi
command is provided by MS-DOS and PowerShell to get detailed information about the operating system and as well as services. We can use the Get-WmiObject command in order to display the service startup type.
PS> Get-WmiObject -Class Win32_Service -Property StartMode -Filter "Name='*win*'"
Display All Services Startup Type Using Get-Service Command
Sometimes we may need to display and review all services startup types. We can use the Get-Service command in order to display all service startup types as a list.
PS> Get-Service | select -property name,starttype

Change Service Startup Type Using Set-Service Command
After displaying the service startup type we generally need to change the service startup type. The Set-Service
command can be used to change the service startup type. The -Name
is used to specify the service name and -StartupType
is used to specify the service startup type.
Set Service Startup Type As Manual:
PS> Set-Service -Name CryptSvc -StartupType Manual
Set Service Startup Type As Automatic:
PS> Set-Service -Name CryptSvc -StartupType Automatic
Set Service Startup Type As Disabled:
PS> Set-Service -Name CryptSvc -StartupType Disabled