User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Windows NT / 2000 / XP / 2003 section within the Tech Talk category of DaniWeb, a massive community of 426,510 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,135 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Windows NT / 2000 / XP / 2003 advertiser: Programming Forums
Views: 7215 | Replies: 11
Reply
Join Date: Oct 2003
Location: Monrovia CA
Posts: 67
Reputation: jjorgensen626 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
jjorgensen626's Avatar
jjorgensen626 jjorgensen626 is offline Offline
Junior Poster in Training

Restarting a windows 2000 computer from the command line

  #1  
Nov 3rd, 2003
I cant find any info for this withoud installing some app. I have a HUGE upgrade that I'm working on (50,000 PC's) and It would be really nice for some of the batch files to reboot the PC's automatically after they are done installing the components. Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2003
Location: Royal Oak, Michigan
Posts: 864
Reputation: TallCool1 is a jewel in the rough TallCool1 is a jewel in the rough TallCool1 is a jewel in the rough 
Rep Power: 9
Solved Threads: 43
Colleague
TallCool1's Avatar
TallCool1 TallCool1 is offline Offline
Practically a Posting Shark

Re: Restarting a windows 2000 computer from the command line

  #2  
Nov 3rd, 2003
Originally Posted by jjorgensen626
I have a HUGE upgrade that I'm working on (50,000 PC's) and it would be really nice for some of the batch files to reboot the PC's automatically after they are done installing the components.

EDIT: Shutdown.exe is part of an upgrade pack for 2000 (not included), but included in XP and Server 2003.
Last edited by TallCool1 : Nov 3rd, 2003 at 12:21 pm.
-- Michael Rudas
How To Ask Questions The Smart Way (article by Eric Raymond).
Dealing with Malware
My Articles page.
My Best-of-Breed Free Software for Windows list
Other Windows- & Microsoft-related links
The Audio Tech's Page
My blog
The Oak Park Computer Club
PenguiCon 4.0 Open Source & Science Fiction convention, April 21-23, 2006.
Knoppix Linux (CD-bootable) download. information, & support.
Reply With Quote  
Join Date: Oct 2003
Location: Your sisters house
Posts: 766
Reputation: )BIG"B"Affleck can only hope to improve 
Rep Power: 0
Solved Threads: 7
)BIG"B"Affleck's Avatar
)BIG"B"Affleck )BIG"B"Affleck is offline Offline
Banned

Re: Restarting a windows 2000 computer from the command line

  #3  
Nov 3rd, 2003
Put it into the startup folder ( C:\WINDOWS\Start Menu\Programs\StartUp\ ) and every time the owner turns on or reboots the computer, it'll crash, bringing up the blue screen of death. A reboot is almost always insured!
If you are insane enough, go to your start menu, click run. Type either: c:\con\con or c:\aux\aux And hit enter. Now enjoy as your computer crashes infront of your very eyes!! A SImple way : Go to Start Run Clear everythig thats already there type in: C:/CON/CON or C:/AUX/AUX and hit enter crashes instantly!! It also works when u type the command in the InterNet Explorers address bar.

Is that what your talking about!
Reply With Quote  
Join Date: Oct 2003
Location: Monrovia CA
Posts: 67
Reputation: jjorgensen626 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
jjorgensen626's Avatar
jjorgensen626 jjorgensen626 is offline Offline
Junior Poster in Training

Re: Restarting a windows 2000 computer from the command line

  #4  
Nov 3rd, 2003
Originally Posted by )BIG"B"Affleck
Put it into the startup folder ( C:\WINDOWS\Start Menu\Programs\StartUp\ ) and every time the owner turns on or reboots the computer, it'll crash, bringing up the blue screen of death. A reboot is almost always insured!
If you are insane enough, go to your start menu, click run. Type either: c:\con\con or c:\aux\aux And hit enter. Now enjoy as your computer crashes infront of your very eyes!! A SImple way : Go to Start Run Clear everythig thats already there type in: C:/CON/CON or C:/AUX/AUX and hit enter crashes instantly!! It also works when u type the command in the InterNet Explorers address bar.

Is that what your talking about!

LOL thats a good one for future reference Big B, but not quite what i need, I dont want to crash the clients PC's but want the last line in my batch files to reboot the PC's. The only other 0ption I thought of was to copy shutdown.exe from within the batch file to a local directory, run it and either leave it or remove it when the last batch file is run.
Reply With Quote  
Join Date: Oct 2003
Location: Your sisters house
Posts: 766
Reputation: )BIG"B"Affleck can only hope to improve 
Rep Power: 0
Solved Threads: 7
)BIG"B"Affleck's Avatar
)BIG"B"Affleck )BIG"B"Affleck is offline Offline
Banned

Re: Restarting a windows 2000 computer from the command line

  #5  
Nov 3rd, 2003
To operate this system most easily, you will need a small utility called WARM.COM (Ed: Possibly similar to one on MELB 526 - check first. I use one called REBOOT COM from the APC magazine set which enables me to do a cold boot or a warm one.) or some similar utility that does a warm boot to the system.

(If you don't have this utility there are other ways - see later.)

Now all we need to do is make a batch file for each group of applications that will copy the relevant set of files and then restart the system with a warm boot.

All the batch files could be combined into one file. However for clarity, they are shown here as separate files.

For example my batch file to set up my normal, small, applications

NORM.BAT

C:
CD\
COPY AUTOEXEC.NOR AUTOEXEC.BAT
COPY CONFIG.NOR CONFIG.SYS
WARM

The batch file to start Ventura is -

VEN.BAT

C:
CD\
COPY AUTOEXEC.VEN AUTOEXEC.BAT
COPY CONFIG.VEN CONFIG.SYS
WARM

And the Xerox Presents file is -

PRE.BAT

CD\
COPY AUTOEXEC.PRE AUTOEXEC.BAT
COPY CONFIG.PRE CONFIG.SYS
WARM

In each case, the CONFIG AND AUTOEXEC file for each application, are copied to become the actual CONFIG.SYS and AUTOEXEC.BAT files. Having done this the system is then restarted with 'WARM'.

Once the system restarts the CONFIG.SYS and AUTOEXEC.BAT files now contain the correct information for each group of applications.

Are you trying to EXECUTE the batch file over all 50,000 comps
Last edited by )BIG"B"Affleck : Nov 3rd, 2003 at 12:29 pm.
Reply With Quote  
Join Date: Oct 2003
Location: Your sisters house
Posts: 766
Reputation: )BIG"B"Affleck can only hope to improve 
Rep Power: 0
Solved Threads: 7
)BIG"B"Affleck's Avatar
)BIG"B"Affleck )BIG"B"Affleck is offline Offline
Banned

Re: Restarting a windows 2000 computer from the command line

  #6  
Nov 3rd, 2003
Last edited by )BIG"B"Affleck : Nov 3rd, 2003 at 12:44 pm.
Reply With Quote  
Join Date: Oct 2003
Location: Monrovia CA
Posts: 67
Reputation: jjorgensen626 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
jjorgensen626's Avatar
jjorgensen626 jjorgensen626 is offline Offline
Junior Poster in Training

Re: Restarting a windows 2000 computer from the command line

  #7  
Nov 3rd, 2003
I have to compile a cd to update all PC's to W2K SP4, IE 6 SP1, MS03-040-045, Adobe 6.0, and some other industry specific app upgrades. I have written some batch files but 2 they all need restarts before the next one can run. The batch files are all basically automated save this one problem (reboot automatically). I dont think I want to change the autoexec.bat or config.sys files, if there is an easier way, but if not then I'll try this (post #5). Thanks.
Reply With Quote  
Join Date: Oct 2003
Location: Your sisters house
Posts: 766
Reputation: )BIG"B"Affleck can only hope to improve 
Rep Power: 0
Solved Threads: 7
)BIG"B"Affleck's Avatar
)BIG"B"Affleck )BIG"B"Affleck is offline Offline
Banned

Re: Restarting a windows 2000 computer from the command line

  #8  
Nov 3rd, 2003
Batch files - Shutdown and Reboot

Scroll down left and right .....DUDE its the MOTHERLOAD of BATS
Last edited by )BIG"B"Affleck : Nov 3rd, 2003 at 12:51 pm.
Reply With Quote  
Join Date: Oct 2003
Location: Monrovia CA
Posts: 67
Reputation: jjorgensen626 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
jjorgensen626's Avatar
jjorgensen626 jjorgensen626 is offline Offline
Junior Poster in Training

Re: Restarting a windows 2000 computer from the command line

  #9  
Nov 3rd, 2003
Originally Posted by )BIG"B"Affleck
Batch files - Shutdown and Reboot

Scroll down left and right .....DUDE its the MOTHERLOAD of BATS

Thanks, I saw this one but notice what it says for 2000.
Reply With Quote  
Join Date: Oct 2003
Location: Your sisters house
Posts: 766
Reputation: )BIG"B"Affleck can only hope to improve 
Rep Power: 0
Solved Threads: 7
)BIG"B"Affleck's Avatar
)BIG"B"Affleck )BIG"B"Affleck is offline Offline
Banned

Re: Restarting a windows 2000 computer from the command line

  #10  
Nov 3rd, 2003
My friend is telling me that(VIA) IISRESET /reboot can do it so I googled it.
Is this article of any use
http://searchwin2000.techtarget.com...omy=%2Fpr%2F5e3
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Windows NT / 2000 / XP / 2003 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Windows NT / 2000 / XP / 2003 Forum

All times are GMT -4. The time now is 5:54 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC