cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MB1
Engaged Sweeper III
Hello,

i simply try to deploy a Lansweeper package with a single command:

powershell -executionpolicy bypass -noprofile -command "Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage"


Is there a way to capture the stdout/stderr in a file at %TEMP%?
3 REPLIES 3
CyberCitizen
Honored Sweeper
Can you not just pipe the output COMMAND > %TEMP%\Output.txt

Or are you wanting the deployment step to read the output of that file?
MB1
Engaged Sweeper III

When the commands are executed, this is done blindly. I have used at normal batch files to run everything that goes to stdout or stderr in a file. Now I want to do this as simple as possible, but still complete, also with the powershell. The point is to be able to understand what happened.

tsconard
Engaged Sweeper III

@MB1 did you come to a resolution?