Saturday, September 29, 2007

Installation of Windows PowerShell

I just watched dnrTV show #82 Scott Hanselman on Windows PowerShell. This shell is really very cool one. I followed the instruction to install the PowerShell and PowerTab.

The installation of PowerShell is straightforward. After the installation, I added a shortcut of this program to my desktop.

PowerTab installation is very clear. The downloaded file is a zip file. Fortunately, the show explained the steps of installation. In the PowerShell console, type the following command to get the profile location:

$PROFILE
C:\Documents and Settings\[user name]\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1


The folder of "WindowsPowerShell" and the profile do not exist. I had to create the folder first. Then I unzip the PowerTAB to a folder called as PowerTAB there:

md WindowsPowerShell
cd WindowsPowerShell
md PowserTAB
cd PowerTAB


After dumping the zip file there, run the following command to set execution policy(first getting command usage):


Get-Help Set-ExecutionPolicy
Set-ExecutionPolicy Unrestricted


Then run the script to install the PowerTAB:


.\Setup.Cmd


Accept all the default settings, the PowerTAB is installed.

I am very impressed by the tool of PowerShell and the plugin PowerTAB. I think this is a must-have tool for .Net developers or programmers.

0 comments: