Have you ever had a co-worker who doesn’t use headphones and has his volume all the way up. Well, I have one of those. I ask him all the time to lower the volume. He does for a while but then it’s back to full blast. It sucks. What can we do right? Well… We are IT. We have PDQ. Time to mute the computer.
The package is a simple powershell script. That deploys to a computer. The powershell version is 3 or higher and nothing else is needed other than the script and a good name.
- Open PDQ Deploy
- Create a new package
- Under Details, I named my package “Mute target PC”
Condistions, I unchecked powershell1 and 2.
- Under steps, I select
- I typed:
- $Obj = new-object -com wscript.shell
- Then I saved it.
Yes, that’s all you need. Then you deploy the script using your admin user. Bam, the computer is muted. Now, I’m one of those people that wants to know if something was successful or not. So, we can add error corrections and exit codes if we like. That’s totally up to you.
With that said, there is other ways to change the volume altogether. However that’s beyond the scope of this blog. You can get more information here: StackOverflow