perak1
Selamat datang Ke Perak1 forum** Kepada pelawat, sila mendaftar untuk menikmati segala kemudahan Perak1 forum.** Diharap semua sahabat yg baru berdaftar, sila memperkenalkan diri anda di ruangan forum .anda juga boleh login forums ini dengan email FB anda danjangan lupa Like Fb perak1:KENALKAN DIRI ANDA:. Perak1 forum.** Pelawat yang mengalami masalah register atau login sila emailkan kepada khalifah_alammaya2000@yahoo.com(forum admin support).** Selepas mendaftar, anda akan secara Automatik telah menjadi ahli perak1 forum dan seterusnya anda boleh login untuk memasuki Perak1 forum tanpa menunggu sebarang e-mail pengaktifan akaun.Selamat melayari Perak1 forum PASTI CERIA BERSAMA KAMI.
perak1


 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

Receive all updates via Facebook. Just Click the Like Button Below

?

Dapatkan Widget Ini Di Aku Punyer Lah! | Get RM100 A Week @ Blogger Tips


Share | 
 

 Shutdown Command Via Command Prompt

View previous topic View next topic Go down 
AuthorMessage
peace™
[[PONSEL_FIGHTER]]
[[PONSEL_FIGHTER]]


Posts : 1529
Join date : 2009-04-11
Location : slgr

PostSubject: Shutdown Command Via Command Prompt   Thu Dec 10, 2009 6:06 pm

Shutdown Command Via Command Prompt :-

The 'Shutdown' Command Becomes More Flexible and Automated when used from the Command Prompt.

To Run the 'Shutdown' command from the command prompt, go to 'Start > Run', type 'cmd', and press 'Enter'.
In the black box (the command prompt) type 'Shutdown' and the Switches you want to use with the 'Shutdown' command.
You have to use at least one switch for the shutdown command to work.

The Switches :-
The 'Shutdown' command has a few options called Switches. You can always see them by typing 'shutdown -?' in the command prompt if you forget any of them.

-i: Display GUI interface, must be the first option
-l: Log off (cannot be used with -m option)
-s: Shutdown the computer
-r: Shutdown and restart the computer
-a: Abort a system shutdown
-m \\computername: Remote computer to shutdown/restart/abort
-t xx: Set timeout for shutdown to xx seconds
-c “comment”: Shutdown comment (maximum of 127 characters)
-f: Forces running applications to close without warning
-d [u][p]:xx:yy: The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)

Note :- I’ve noticed using a switch with a '-' sign doesn’t work sometimes.
If you are having trouble try using a '/' in place of '-' in your switches.

Examples :-
shutdown –m \\computername –r –f
This command will restart the computer named computername and force any programs that might still be running to stop.

shutdown –m \\computername –r –f –c “I’m restarting your computer. Please save your work now.” –t 120
This command will restart the computer named computername, force any programs that might still be running to stop, give to user on that computer a message, and countdown 120 seconds before it restarts.

shutdown –m \\computername –a
This command will abort a previous shutdown command that is in progress.

Using A Batch File :-
You can create a file that performs the shutdown command on many computers at one time.

In this example I’m going to create a batch file that will use the shutdown command to shut down 3 computers on my home network before I go to bed.

Open 'Notepad' and type the shutdown command to shut down a computer for each computer on the network.
Make sure each shutdown command is on its own line.
An example of what should be typed in notepad is given below-

shutdown –m \\computer1 –s
shutdown –m \\computer2 –s
shutdown –m \\computer3 -s

Now I’ll save it as a batch file by going to file, save as, change save as type to all files, give the file a name ending with '.bat'. I named mine 'shutdown.bat'.
Pick the location to save the batch file in and save it.

When you run the batch file it’ll shutdown computer 1, 2, and 3 for you.

You can use any combination of shutdown commands in a batch file.

_________________________________________________




Back to top Go down
View user profile
 
Shutdown Command Via Command Prompt
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» DQFanaticX [Command Knight]
» Tamiya LRDG Command Car & Breda 20mm AA Gun
» Vickers Wellington Mk.VIII (MPM 1/72)
» Need help identifying cars that use a specific car engine
» English Electric Canberra B.2

Permissions in this forum:You cannot reply to topics in this forum
perak1 :: .::Warez::. :: .::SOFTWARE-PC::.-
Jump to:  
Top posters
peace™ (1529)
 
miss-lady (1280)
 
sriteddy™ (1157)
 
salju (1063)
 
lipanx_laut (970)
 
macan_sparrow (742)
 
kuyie (668)
 
raffey-sama (509)
 
arb_mtq (432)
 
luvfama (297)
 
LATEST MOVIE TODAY
.:Sila click pada gambar dibawah untuk download boxoffice movie perak1 semoga terhibur :.