I am working on automating Remove-AppxPackage
and it works fine, but even when using
Remove-AppxPackage $appXPackage -allUsers:$allUsers -errorAction:stop > $null
I am seeing some junk in the console. Something of a progress indicator, with a sequence of o
's one screen, but it doesn't remain after processing. It's just ugly during processing. Is there some way to make it quiet, or am I stuck with ugly?
EDIT: I revised the code for the verbose argument, thus:
Remove-AppxPackage $appXPackage -allUsers:$allUsers -verbose:$false -errorAction:stop > $null
and I am still getting processing artifacts on screen, as you see here.
it should be | Out-Null
| Out-Null
at the end and if you don't want to see the verbose output use -verbose:$false
to remove the progress indication during the execution of the commands you can use this:
$progressPreference = 'SilentlyContinue'
place this before the code that is displaying progress bar.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.