Difference between revisions of "Getting Started (PowerCLI)"

Jump to navigation Jump to search
→‎Scheduling: Added "Log Output"
m (Added Meta)
(→‎Scheduling: Added "Log Output")
Line 106: Line 106:
* Program/script: <code> Powershell </code>
* Program/script: <code> Powershell </code>
* Add arguments (optional): <code>-PSConsoleFile "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" "& C:\Scripts\ESX-probe.ps1" </code>
* Add arguments (optional): <code>-PSConsoleFile "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" "& C:\Scripts\ESX-probe.ps1" </code>
=== Log Output ===
To capture the Standard Output and Error Output streams from the script being run, append something similar the following to the end of your command line
* <code> > script-stdout.log 2> script-errout.log </code>
This may capture more than you would be able to see from a Transcript of the script run (see [[Getting_Started_%28PowerShell%29#Logging|PowerShell Logging]].


=== Force 32-bit ===
=== Force 32-bit ===

Navigation menu