Powershell : Small lines and Powerful Output - 2

As we discussed about Powershell and its importance in my previous post

http://ankurpathakniit.blogspot.com/2018/03/powershell-small-lines-and-powerful.html

Lets walk further

Powershell also supports all cmd commands, Run commands as well. cool right? 

Does Powershell handle multiple actions in one go ? ...Yes

example :

Start\Stop  multiple services on local\remote systems

Copy\Delete  multiple files\folders on local\remote systems

Change application configurations on local\remote systems...and many more ...



Powershell in action

We'll try to stop 2 services at same time and following is command for that

Net Stop  Service Name (CMD command)

Stop-Service Service Name ( Powershell command)

We'll try to stop Windows Installer Service alone and then Windows time and Installer both in one go.

To find Service name select service and see properties

Now open Powershell and run our cmd and powershell commands one by one, to Stop multiple services just add service name using , in command ..See it's that easy

I won't show you the service status as that's the thing for you to check in services console and let me know if it worked or not...:)

Cheers.....





Comments

Popular posts from this blog

Windows Deployment Service ( WDS ) and Errors and Solutions

Hyper-V Questions and answers !

DHCP, WDS, PXE Boot and Common Issues