CodePlexProject Hosting for Open Source Software
I have a PowerShell script that executes a WebDeploy cmd. When I run it from the console I can see the output just fine but I don't see the output in the email. Is there a way to capture that output and return it via the email?
I answered by own question with the following:
& $deployCmd /y /M:$DeployMachineURI /U:$DeployUserName /P:$DeployPassword /a:basic 2>&1 | out-file DeployOutput.txt
get-content -path DeployOutput.txt
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.