page contents My title page contents A Blog on Tools, Techniques and Announcements: PowerShell-Day 1

Tuesday, August 2, 2016

PowerShell-Day 1

This is  my first day trying out PowerShell,

So to make things simple just follow the 3 rules and you should learn PowerShell in less duration

1. DO Not fear the Shell

2. Practice

3.  Do not memorize, but discover


how to Launch the PowerShell Console,

Currently I am using windows 10 and you can easily go to the start button and launch PowerShell as shown below:






Here are the versions :
-          Powershell v3- Windows Windows 8 and Server 2012
-          Powershell v2-windows 7 and server 2008


-          Download the windows management framework 3.0

Always run it as Admin  as you may not have access to certain modules and cmdlets ( Also known as Command-lets)

So, Now onwards make a habit to use PowerShell as a replacement to Command Prompt as all your commands that work on command prompt will work on PowerShell


Using the Help Command

Get-Help is the command which will help you most of the time







The easier way to remember is 
(VERB-NOUN)

All Cmdlets have are build using the format (VERB-NOUN)

Some Basic Commands to try today

-          Get-help
-          Help
-          Get-help *services*
-          Get-help g*service* (Alias for Get-Help)
-          Get-help get-service
-          Get-help g*adcomputer*
-          Get-verb ( shows all the verbs)


-          Get-help get-service –detailed ( to see details)
-          Get-help get-service –example (See examples, you will see around 10 examples)
-          Get-help get-service –online ( opens it online, in a browser)
-          Get-help get-service –showwindow ( opens it in a window)



This is really cool as you can browse details, syntax and all that you want for the particular command and it makes it easier to copy and paste