Thursday 10 September 2015

How to start all windows service at the same time ?

The efficiency and power of powershell is always greater than you thought about it. Here I wish to make it things easier that we used to found very hard at times. In windows lot of services will be there each of them are not in running state .

Some of them are running , some of them are stopped and some of them may got disabled.

What you have to do if you want to start all the services at the same time?

Here is the place where powershell can help you.It is simpe single command to start all of the Windows services.

Get-Service is the command in powershell which will list out all the windows service running in your machine which will get name, state whether it is running or not and display name for each services.



You may want to filter out services which may have several restrictions. For this we can go with Where property or Where-Object cmdlet.

Suppose you want to want to start services which ever is in stopped state then here may use Where-Object cmdlet.

This command will start all the Service which has the Display name like "Windows" .

Get-Service | Where-Object{$_.DisplayName -like 'Windows*'}

The output will be like this,



If you want to start all the service whichever is in automatic state then go to powershell and simply enter the command Get-Service | Start-Service

That's it this command will start all the service. Is it done ? Definitely no.

This command will never start all the services available. It will start the services which we have enable automatic service start . Apart from  these services other services will be there which can be set type as Manual or may be disabled by the user


No comments:

Post a Comment