Posts

Showing posts from March, 2018

Powershell : Small lines and Powerful Output - 2

Image
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 j

Powershell small lines and Powerful Output

Image
Guys , as the name says , Powershell is a very powerful command line interface\tool\software to perform all task what you can do in GUI. Just that ? No, i would say it's a language which can allow you to make your own apps\scripst to full fill your requirement. So what actions Powershell can do ? Pretty much ..everything...so what it needs ? Just logic and knowledge of Powershell commands and Syntax ... how? alright.. In Powershell :   Get is almost for fetching information\details and Set is almost for making changes to those details. Examples ... Get-command gives you all default  available commands Similarly you can find so many commands from the output and will come to know about more info with this single command. This includes commands for Set example as well. you really need to see the output. Finding more commands i will left with you guys and in next post will go for some advance info. Cheers!!!!!