Sunday, November 15, 2015

Command Lines


Command lines:
powershell
-file "filename.ps1" (specifiies which script file to run)
-NonInteractive (prevents output to the command window)
-executionpolicy bypass -file "filename.ps1"  (enables script files to execute when the execution policy is restricted)

 C:\Windows\System32\WindowsPowerShell\v1.0 is added to the system path when powershell is installed.  Any custom scripts that you write can be placed in this location and easily called from a powershell command prompt.