Computing.Net > Forums > Windows NT > NT Batch File Reboot

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

NT Batch File Reboot

Reply to Message Icon

Name: Paul Brandon
Date: August 27, 1999 at 16:20:20 Pacific
Comment:

Greetings. I am currently working in a large multiuser environment where we are trying to implement a login script that will do an automatic install for users who log on with a special UID. Since this UID will have administrator rights, we want to ensure that if the network drive is unavailable for some reason that the batch file won't simply end and leave the User logged on with these rights (if the drive is connected successfully we copy the resource kit file shutdown to reboot the machine). The problem is that there doesn't seem to be an easy way to do this in NT with ONLY the files included with the standard Windows NT install (or one we can create with debug).

What we've tried:

1. Having the script create a small DOS reboot.com file with debug to reboot. This didn't work in NT.

2. Running the command rundll32 user32,ExitWindowsEx. This worked sometimes but not ALL the time for some reason. Also, even when it worked it only logged off the user but didn't reboot. There appears to be an InitiateShutDown API call but I didn't have any success with that at all.

Does anyone have ANY suggestions??? An EMAIL RESPONSE would be GREATLY appreciated! Thanks.

Paul.
mailto:Paul@firepower.org



Sponsored Link
Ads by Google

Response Number 1
Name: Anthony
Date: August 30, 1999 at 06:27:48 Pacific
Reply:

Hello Paul,

Would a .exe that sends a reboot signal to the OS to
shutdown without prompting the user be ideal for you?
If so I could write and compile a script to that and email
it to you in a matter of minutes. The last thing in your
script would be a call to the one I will write to reboot the
system. Let me know.

Regards,

Anthony Brown


0

Response Number 2
Name: Steve
Date: September 1, 1999 at 08:08:20 Pacific
Reply:

Howdy!
Tony:
would you send another e-mail to me?


0

Response Number 3
Name: gary brown
Date: December 1, 1999 at 14:34:57 Pacific
Reply:

Hey Anthony can i get a copy of the .exe to reboot NT. thanks gary


0

Response Number 4
Name: Anna Stathis
Date: January 23, 2000 at 20:53:52 Pacific
Reply:

Anthony,

We've had the same problem trying to reboot NT. Could you please send us a copy of the .exe file you created?

Thanks in advance.

Regards,

Anna


0

Response Number 5
Name: siva
Date: April 5, 2000 at 08:48:20 Pacific
Reply:

This batch file should reboot on windows NT:

@ECHO OFF & cd/d %temp% & echo [version] > {out}.inf
(set inf=InstallHinfSection DefaultInstall)
echo signature=$chicago$ >> {out}.inf
echo [defaultinstall] >> {out}.inf
rundll32 setupapi,%inf% 1 %temp%\{out}.inf
del {out}.inf


0

Related Posts

See More



Response Number 6
Name: Dalia
Date: May 1, 2000 at 18:36:21 Pacific
Reply:

Anthony:

Please send me a copy of that .exe file, it would be very much appreciated.

Thanks


0

Response Number 7
Name: Kim Smith
Date: June 14, 2000 at 17:05:17 Pacific
Reply:

I would like to have that .exe also. I need to reboot the nt server at a predetermined time and use a freeware program called JIT to set the time of reboot. Thanks.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: NT Batch File Reboot

NT Batch File www.computing.net/answers/windows-nt/nt-batch-file/1743.html

NT Batch files www.computing.net/answers/windows-nt/nt-batch-files-/8403.html

User input in NT Batch files www.computing.net/answers/windows-nt/user-input-in-nt-batch-files/20640.html