Skip to content

Instantly share code, notes, and snippets.

@mpslanker
Created June 24, 2014 12:08
Show Gist options
  • Save mpslanker/50469045fbf2a08e40ac to your computer and use it in GitHub Desktop.
Save mpslanker/50469045fbf2a08e40ac to your computer and use it in GitHub Desktop.
Many of these rely on using nircmd.exe from from NirSoft as well.
Turn remote computer speaker to to low.
psexec -s \\computername -c -f nircmd.exe changesysvolume 2000 -u Administrator -p Password
Turn remote computer speaker to to max.
psexec -s \\computername -c -f nircmd.exe setsysvolume 65535 -u Administrator -p Password
Open CD-Rom tray of remote computer.
psexec -s \\computername -c -f nircmd.exe cdrom open d: -u Administrator -p Password
Close CD-Rom tray of remote computer.
psexec -s \\computername -c -f nircmd.exe cdrom close d: -u Administrator -p Password
Lock remote workstation.
psexec -s -i \\computername rundll32.exe user32.dll LockWorkStation -u Administrator -p Password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment