
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2019 06:22 PM
Hello,
i simply try to deploy a Lansweeper package with a single command:
Is there a way to capture the stdout/stderr in a file at %TEMP%?
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%?
Labels:
- Labels:
-
General Discussion
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2019 02:07 AM
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?
Or are you wanting the deployment step to read the output of that file?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2022 01:21 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2023 06:03 PM
@MB1 did you come to a resolution?
