I'm attempting to remote shutdown a computer via PSTools, but so far I am only able to get the command to work via command console. A batch file is preferable, because it can be hotkeyed to a keyboard shortcut.
The syntax here has been unclear and I have used information in other threads to point me in the right direction. Most times, the script does nothing, but :
actually shutdown the computer I'm trying to launch the command from. But,
in command console works fine. Can anyone who has a better understanding of script syntax tell me what I'm doing wrong?
The syntax here has been unclear and I have used information in other threads to point me in the right direction. Most times, the script does nothing, but :
C++:
@echo off
start C:\PROGRAM_BIN\PSTools\psshutdown.exe /psshutdown \\REMOTECOMPUTERNAME -k -f -t 00
exit
actually shutdown the computer I'm trying to launch the command from. But,
C++:
C\PROGRAM_BIN\PSTools>psshutdown \\REMOTECOMPUTERNAME -k -f -t oo
in command console works fine. Can anyone who has a better understanding of script syntax tell me what I'm doing wrong?