Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Startup Script restart computer

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 09-03-2007
wwwguy1
 
Posts: n/a
Startup Script restart computer

I have a gpo startup script that uninstalls a application (msiexec /x). What
i need to have happen is to have that script or a follwing script intiate a
restart of the computer after the unintall is done.

The Group Policy that applies the startup script that uninstalls the app and
would fire off the restart command has a WMI filter so that it will only
process on a computer that has the specific application installed, thus
preventing an endless restart loop.

I have tried several different ways and all have failed. The computer does
not appear to listen to the reboot command from the startup script. The
logon process simply finishes and displays the logon box.

The only thing i have not yet tried was to use the script to schedule a
restart. I am not very familiar with scripting scheduled tasks and i am not
sure if that would even work.

Does anyone if there is some kind of security policy preventing a startup
script from restarting the computer or how i could restart the computer after
the uninstall.

Reply With Quote
  #2  
Old 09-03-2007
JakeDAHS
 
Posts: n/a
Re: Startup Script restart computer

On Mar 8, 3:21 pm, wwwguy1 <wwwg...@discussions.microsoft.com> wrote:
> I have a gpo startup script that uninstalls a application (msiexec /x). What
> i need to have happen is to have that script or a follwing script intiate a
> restart of the computer after the unintall is done.
>
> The Group Policy that applies the startup script that uninstalls the app and
> would fire off the restart command has a WMI filter so that it will only
> process on a computer that has the specific application installed, thus
> preventing an endless restart loop.
>
> I have tried several different ways and all have failed. The computer does
> not appear to listen to the reboot command from the startup script. The
> logon process simply finishes and displays the logon box.
>
> The only thing i have not yet tried was to use the script to schedule a
> restart. I am not very familiar with scripting scheduled tasks and i am not
> sure if that would even work.
>
> Does anyone if there is some kind of security policy preventing a startup
> script from restarting the computer or how i could restart the computer after
> the uninstall.



Just a couple of ideas. You had mentioned a reboot command in your
script already that was failing. Have you tried a reboot switch for
the msi?

http://msdn2.microsoft.com/en-us/library/aa372024.aspx

If these are xp hosts, maybe issue the shutdown.exe command with
reboot switches.

-J

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Startup Script restart computer"
Thread Thread Starter Forum Replies Last Post
Cannot find script file on windows startup Ekadant Operating Systems 3 22-07-2009 10:35 PM
Workstations hang on running startup script due to GPO Billie Active Directory 2 11-06-2009 01:40 AM
Why restart at every startup in XP pro? SagarP Operating Systems 2 25-09-2008 07:05 PM
task scheduler in Vista: run script at startup on any computer and any user in network Broesel2879 Windows Software 0 21-05-2008 01:37 PM
Startup Script or Login Script ?? WANNABE Active Directory 5 22-12-2006 07:44 PM


All times are GMT +5.5. The time now is 02:23 PM.