How to hide the “installing package AudioDeviceCmdlets” and “Downloaded” messages from the executed powershell command “Install-Module -Name AudioDeviceCmdlets” in the .batch script and cmd window?
It’s about the blue pop-up notification that I showed above.
I see this when I use the powershell command straight from the .bat script:
[CODE]powershell -ExecutionPolicy Bypass -Command “Install-Module -Name AudioDeviceCmdlets” -Force >NUL 2>&1[/CODE]
Can I add another condition, change a command or switch to improve it?
Ultimately, I would like everything to happen silently, invisible, without additional messages and notifications popping up.
I also want it not to ask for confirmation whether we want to install or not, but I already achieved this by using “-Force” at the end.
To anticipate your questions, I need a powershell code made straight from the CMD console, and the powershell code in .ps1 that will work silently will not be useful to me either.
If I may, please give me some advice and comments.
I tried changing the content of the command and its order and tried various other switches such as:
-Confirm:$false
-Out-Null
-Hide
-Silent
-Quiet
etc. and I didn’t get anything.
The only thing I managed to do is -WindowStyle Hidden, where it hides the entire CMD window after executing the command – and I don’t care about that either, as everything disappears.