Solved psshutdown works in console, but not as batch script

Banqu0

New member
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 :

Code:
@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 :mad:

Any help is appreciated.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate 64bit
CPU
2.8GHz
Memory
6GB
I figured it out.

Code:
@echo off
start C:\PROGRAM_BIN\PSTools\psshutdown.exe  \\REMOTECOMPUTERNAME -k -f -t oo
exit
is the proper syntax
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate 64bit
CPU
2.8GHz
Memory
6GB
Back
Top