Day 1: Firing up the Windows PowerShell Command Shell
Welcome Guys! Let’s start with a light session today.
Today we will learn launching the PowerShell & executing few basic cmdlets (Sounds odd, ok, for now read cmdlets as Commands). Windows PowerShell 2 doesn’t ship with any of the Windows operating systems except Windows 7; so we need to install it (from MS site). Windows PowerShell 2 can be installed on both the x86 and x64 platforms of Windows XP with SP3, Windows Server 2003 with SP2, Windows Vista with SP1, Windows Server 2008, and Windows 7(already installed).
If you have Win7 system, type PowerShell in search bar of start menu or follow %windir%\system32\WindowsPowerShell\v1.0\PowerShell_ISE.exe or even better Start -> Programs -> Accessories -> Windows PowerShell.
It looks a lot like your old Windows command shell, except that by default the background is blue and the prompt is prefixed by PS. You can run some familiar DOS commands (such as DIR and CD), and they’ll still work, but the output might look a bit different.
Hmm! Wanna try some cmdlets (or Comands, for now).
Type Dir on Powershell and cmd, and see the difference. Try few more like date, time (time won’t work!!). Surprised? Is powershell is just another cmd? We will try to answer this in coming weeks.