Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET
Windows Client OS

Quickly Shut Down Computers on Network

How can I quickly shut down all the computers on my network?

Use the FOR command combined with the SHUTDOWN command:

​FOR /L %i in (1,1,254) DO shutdown ''192.168.0.%i 

Sponsored Content

Say Goodbye to Traditional PC Lifecycle Management

Traditional IT tools, including Microsoft SCCM, Ghost Solution Suite, and KACE, often require considerable custom configurations by T3 technicians (an expensive and often elusive IT resource) to enable management of a hybrid onsite + remote workforce. In many cases, even with the best resources, organizations are finding that these on-premise tools simply cannot support remote endpoints consistently and reliably due to infrastructure limitations.

Windows XP will let you log-off all users in one line:

​FOR /L %i in (1,1,254) DO shutdown ''192.168.0.%i /l

Change 192.168.0 to match you own Network ID.

For Windows Server 2003 based computers you’ll need to refine the SHUTDOWN command and provide the reason for the restart or shutdown. For example, if you plan to reboot servers because of a security fix deployment you can use the following command:

​FOR /L %i in (1,1,254) DO shutdown /r /m ''192.168.0.%i /d p:2:18

Use SHUTDOWN /? for a complete list of available switches.

Note: The above scripts will cause ALL the computers on your LAN (basically, on the segment you pointed, for the above example) without notifying their users. It will also shut down all your file servers, print servers, domain controllers, e-mail servers and all other Windows based computers. You do NOT want to do that, do you? Change the IP address range to suit YOUR needs!

You can disable other user’s ability to remotely shutdown computers by editing their respective Local Security Policy in the User Rights section, or, if you’re in a W2K domain you can edit the servers’ GPO.

Download Shutdown.exe it you don’t have it from HERE (11kb). This is a GUI version of the command:

Windows XP has the SHUTDOWN  command built-in, and running it as SHUTDOWN -i will bring up this console:

Many other tools will enable you to remotely shutdown a system.

Related Topics:

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: