Can be run by double clicking on .vbs file
for greater control Use Cscript.exe (from run menu or CMD prompt)
Check Cscript.exe /? For more options
2. Powershell script - .ps1 files
you need powershell to execute this, which can be downloaded from
http://blogs.msdn.com/powe
to run script load powershell
" Make sure youve changed your execution policy. By default, PowerShell wont run scripts at all.
to change execution policy
1: | Set-ExecutionPolicy Unrestricted |
" To run a script, specify the entire file path or
use the .\ notation to run a script in the current directory
" If your file path includes blank spaces, enclose the path in double quote marks and preface the path with an ampersand.
e.g. -
1: | & "C:\My Scripts\Test.ps1" |