Difference between revisions of "Power Shell"

Jump to navigation Jump to search
282 bytes added ,  08:36, 27 July 2010
Added "Logging"
(→‎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 ==

Navigation menu