Difference between revisions of "Power Shell"
Jump to navigation
Jump to search
(→Execution Policy: Added additional info) |
(Added "Logging") |
||
Line 208: | Line 208: | ||
</source> | </source> | ||
== Logging == | |||
The easiest way to setup logging from with a script is to use the Transcript functionality which will log all output to a transcript file | |||
<source lang="powershell"> | |||
Start-Transcript -Path C:\Users\name\Scripts\script.log -NoClobber | |||
# script | |||
Stop-Transcript | |||
</source> | |||
== External Processes == | == External Processes == |