F
F
fatalick2017-05-16 22:05:52
PowerShell
fatalick, 2017-05-16 22:05:52

How to change volume remotely?

Found this:
How to reduce the volume of "System Sounds" Windows 7?
You need to run a similar script remotely, on command. As imperceptibly as possible for the user (for his own convenience, therefore, I do not consider teamviewer, etc.).
Something like this: the desired process on the win computer listens to the port, a command with the volume value comes to this port, the process changes the volume to this value.
If there is a solution, great. You can also script which thread (where to dig: win api? powershell can network interaction out of the box?). Please guide me on the right path :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ethril, 2017-05-16
@fatalick

The easiest way to change the sound in Powershell is through a hotkey. Mute:

$obj = new-object -com wscript.shell
$obj.SendKeys([char]173)

Similar to Volume down (174) and Volume up (175).
Can. Google Powershell remoting and cmdlets New-PSSession, Invoke-Command.

F
fatalick, 2017-05-17
@fatalick

Instead of powershell remoting and other things, I settled on powershellserver . I cling to the machine through putty, I launch a script. Might be useful to someone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question