Wednesday, December 19, 2012

How to run PowerShell script

Because my memory is not the best knowledge base, I do not memorize things I do just once or twice per half a year :)
Because of this reason I got this error message from PowerShell whenever I tried to run some scripts:


The term 'test.ps1' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again.
At line:1 char:7
+ test.ps1 <<<<
That is why I decided to cover this error message for me once and for all  :)
Article below describe it very well.

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