Results 1 to 2 of 2

Thread: Startup Script restart computer

  1. #1
    wwwguy1 Guest

    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.

  2. #2
    JakeDAHS Guest

    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


Similar Threads

  1. Cannot find script file on windows startup
    By Ekadant in forum Operating Systems
    Replies: 3
    Last Post: 22-07-2009, 10:35 PM
  2. Workstations hang on running startup script due to GPO
    By Billie in forum Active Directory
    Replies: 2
    Last Post: 11-06-2009, 01:40 AM
  3. Why restart at every startup in XP pro?
    By SagarP in forum Operating Systems
    Replies: 2
    Last Post: 25-09-2008, 07:05 PM
  4. Replies: 0
    Last Post: 21-05-2008, 01:37 PM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,931,363.00480 seconds with 17 queries