[Script] Caminhos shutdown,lock,hibernate,sleep,restart no Win7 e Win2008
Enviado: 26 Jun 2014 10:37
Segue comandos para executar as funções 
Shutdown / Desligar
Restart / Reiniciar
Lock Workstation / Bloquear estação
Hibernate Computer / Hibernar Computador
Sleep Computer / Colocar em modo sleep

Shutdown / Desligar
Código: Selecionar todos
C:\Windows\System32\shutdown.exe -s -t 00
Código: Selecionar todos
C:\Windows\System32\shutdown.exe -r -t 00
Código: Selecionar todos
Rundll32.exe User32.dll,LockWorkStation
Código: Selecionar todos
rundll32.exe PowrProf.dll,SetSuspendState
Código: Selecionar todos
rundll32.exe powrprof.dll,SetSuspendState 0,1,0