batch to restart pc using TASKKILL and SHUTDOWN
Posted: 04 Mar 2012 11:15
hi i need to restart pc realy fast using batch any ides?
i tried this
but shutdown doesn't work after all tasks are killed any ides? I tried also:
taskkill /F /FI "USERNAME eq testuser" /IF "IMAGENAME ne cmd.exe" and taskkill /F /FI "USERNAME eq testuser" /IF "IMAGENAME ne kill.bat" but without success =[ maybe other ideas how to restart pc?
i tried this
Code: Select all
taskkill /F /FI "USERNAME eq testuser"
shutdown /f /r -t 00
but shutdown doesn't work after all tasks are killed any ides? I tried also:
taskkill /F /FI "USERNAME eq testuser" /IF "IMAGENAME ne cmd.exe" and taskkill /F /FI "USERNAME eq testuser" /IF "IMAGENAME ne kill.bat" but without success =[ maybe other ideas how to restart pc?