G33K-TRICKS: How to Shut Down the Computers on the Network

Thursday, June 16, 2011

How to Shut Down the Computers on the Network


Shutdown is the inbuild windows command to shutdown the system.
Open CMD prompt and use the following "for" commands:


"For" command can be used to shutdown the systems.

for /l %i in (1,1,254) do shutdown ''160.161.0.%i

For windows xp, single line is sufficient to log off:

for /l %i in (1,1,254) DO shutdown ''162.161.0.%i /l


where 160.161.0 is your Network ID.


Since windows server 2003 is a Server, you have to explicitly mention the reason to shutdown the system.

for /l %i in (1,1,254) do shutdown /r /m ''160.161.0.%i /d p:2:18

For help ,
Type shutown /? command in the command prompt. Several attributes a available with shutdown command.

NOTE:
These commands can shutdown the system without letting other users know. Though System admins can catch you by looking at the logs.
Warning!!you dont wana do that ...


Remember above given information is only for educational purpose...!!!

No comments: