Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Tuesday, March 15, 2011

How to launch a PowerShell Script without typing the full path name

When you are in the PowerShell shell environment, executing a script can be a bit of a pain.  Normally you need to type the entire path to get the script to execute.  For example, you may need to type C:\Users\JohnDoe\Scripts\Myscript.ps1.  You do not have to do this.  If you are in the directory that the script resides, simple type .\MyScript.ps1 and it will execute

Reference: http://technet.microsoft.com/en-us/library/ee176949.aspx

No comments: