How to Shutdown, Restart, Sleep, Lock and Hibernate using command line

Written by Planet Lowyat on June 28, 2008 – 12:02 am -

How to  Shutdown, Restart, Sleep, Lock and Hibernate using command line on Microsoft Windows Vista.

1. Shutdown your Computer

  • Shutdown.exe -s -t 00
  • Force all applications to close and shutdown immediately
  • Shutdown.exe -s (After 30s…)

2. Restart Computer

  • Shutdown.exe -r -t 00

3. Sleep Computer

  • Rundll32.exe Powrprof.dll,SetSuspendState Sleep

4. Lock your Computer

  • Rundll32.exe user32.dll LockWorkStation

5. Hibernate Computer

  • Rundll32.exe Powrprof.dll,SetSuspendState Hibernate

So for anyone who would like to make your life easy, you can create a shortcut button that link to the related command show as above.

Read more »


Tags: , , , , , ,
Posted in Hows To | No Comments »

How To Activate Microsoft Windows 2008 Using Command Line

Written by Planet Lowyat on April 24, 2008 – 11:19 pm -

Activate Microsoft Windows 2008 is an easy job but I would like to share “How to activate Microsoft Windows 2008 using command line”. Sounds good?

Go to ‘Run’

Type ‘cmd’ and press ENTER.

Type C:\Users\Administrator>cscript \windows\system32\slmgr.vbs /ipk KPQTV-YOUR-PRODUCT-KEY-HERE and press ENTER.

Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Installed product key KPQTV-….-…..-…..-….. successfully.

Type C:\Users\Administrator>cscript \windows\system32\slmgr.vbs /ato and press ENTER.

Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Activating Windows Server(R), ServerEnterprise edition (xxxxx-xxxxx-xxxxx-xxxxx-xxxxx).
Product activated successfully.
Read more »


Tags: , , , ,
Posted in Hows To | No Comments »
RSS