Página 1 de 1

[Script] Caminhos shutdown,lock,hibernate,sleep,restart no Win7 e Win2008

Enviado: 26 Jun 2014 10:37
por marceloleaes
Segue comandos para executar as funções  ;)

Shutdown / Desligar

Código: Selecionar todos

C:\Windows\System32\shutdown.exe -s -t 00
Restart / Reiniciar

Código: Selecionar todos

C:\Windows\System32\shutdown.exe -r -t 00
Lock Workstation / Bloquear estação

Código: Selecionar todos

Rundll32.exe User32.dll,LockWorkStation
Hibernate Computer / Hibernar Computador

Código: Selecionar todos

rundll32.exe PowrProf.dll,SetSuspendState
Sleep Computer / Colocar em modo sleep

Código: Selecionar todos

rundll32.exe powrprof.dll,SetSuspendState 0,1,0