+ Post New Thread
Results 1 to 3 of 3
Windows Server 2000/2003 Thread, Exceptionally slow Startup and Shutdown scripts in Technical; Hello All, When applying startup and shutdown scripts via group policy the machines just sit there on "Running Startup Scripts" ...
  1. #1
    Trapper's Avatar
    Join Date
    Apr 2007
    Location
    Birmingham
    Posts
    1,153
    Thank Post
    73
    Thanked 139 Times in 112 Posts
    Rep Power
    91

    Exceptionally slow Startup and Shutdown scripts

    Hello All,

    When applying startup and shutdown scripts via group policy the machines just sit there on "Running Startup Scripts" for what can only be described as an epoch.

    They rarely seem to do anything at the end, but for example the following script, which removes a single profile, took half an hour at shutdown!

    @echo off


    title Remove InstallXP Profile

    echo.
    echo.
    cls
    echo.
    echo.
    echo Deleting InstallXP profile
    echo This is an automated maintainence protocol enacted by IT Support
    echo.
    echo Please wait...
    echo.
    rmdir /q /s "C:\Documents and settings\InstallXP"
    echo.
    echo Operation complete.
    exit

    I've also set a startup script to install an MSI, as the AD way of deploying rarely seems to work for me:

    @echo off

    title Installing Driving Software Theory 2010 for Room 43

    echo Installing your Driving Software Theory 2010 software
    echo Please allow this product to install
    echo This should take no longer than 5 minutes
    echo If you have any problems please contact IT Support
    echo.
    echo Many Thanks!
    echo.
    echo Please wait...
    msiexec /i "\\hsapps\Software\RemoteDeploy\DTS Driving Client 2010\DTS Driving Client 2010.msi" /passive
    echo Installation Complete! Please look for this program on your start menu under "Work Related Learning"
    pause
    exit

    Is there anything obvious that I've done wrong on these scripts?!!

    Any ideas on why it's so slow?

    Cheers,

  2. #2

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,640
    Thank Post
    894
    Thanked 1,314 Times in 798 Posts
    Blog Entries
    1
    Rep Power
    441
    Well your startup script tells it to repair/reinstall on every boot.
    I really would try and get GP deployment working if I was you as its really a much better option in. What kind of issues were you having?

  3. Thanks to ZeroHour from:

    Trapper (19th March 2010)

  4. #3
    browolf's Avatar
    Join Date
    Jun 2005
    Location
    Mars
    Posts
    1,524
    Thank Post
    106
    Thanked 88 Times in 74 Posts
    Blog Entries
    46
    Rep Power
    40
    if you packet sniff the traffic from the pc using a laptop connected to a hub connected to the pc. When the pc is misbehaving, sometimes there's clues as to what the problem might be. like the pc is looking for something on the network and can't find it.

    if would help to check the presence of the driving theory software before running the installer. ie no need to run it if its already there and batch is quicker.

    if not exist "c:\program files\driving\etc.exe" do run msi

  5. Thanks to browolf from:

    Trapper (19th March 2010)

SHARE:
+ Post New Thread

Similar Threads

  1. See how long startup scripts take to run
    By FN-GM in forum Windows
    Replies: 5
    Last Post: 18th January 2010, 06:15 PM
  2. Sofware deployments via startup scripts
    By Oops_my_bad in forum Windows Vista
    Replies: 1
    Last Post: 7th May 2009, 11:13 PM
  3. Another newbie NM question.....startup scripts..
    By Little-Miss in forum Learning Network Manager
    Replies: 17
    Last Post: 27th January 2009, 01:45 PM
  4. Startup scripts
    By djones in forum Windows
    Replies: 10
    Last Post: 27th February 2008, 12:18 AM
  5. Computer Startup Scripts
    By Spot in forum Windows
    Replies: 18
    Last Post: 16th November 2005, 11:06 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •