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.
Re: Startup Script restart computer
On Mar 8, 3:21 pm, wwwguy1 <[email protected]> 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