Startup script runs manually, but fails in Group Policy'startup folder


  1. Posts : 57
    Windows 7 pro 64 bit with XP Mode
       #1

    Startup script runs manually, but fails in Group Policy'startup folder


    I have startup script that opens several network folders, which works perfectly when run manually from the cmd prompt or from windows explorer, but shows several errors on startup of the computer (cold start or restart). On a cold start or restart we get network errors 85 and 53 and then the script hangs awaiting input. (Manually, this runs perfectly either as a batch file or I can paste the contents of the .bat file in the cmd prompt.)

    Here is the script with one of the commands (all the commands, with the exception of the individual shares, are the same):
    @echo off
    if exist K: net use K: /delete /y >nul
    net use K: \\Server-Office\DriveO\Storage\Knitting /persistent:yes >nul
    exit


    There surely is a reason the startup is causing this that I'm overlooking.
      My Computer


  2. Posts : 3,783
    win 8 32 bit
       #2

    I would guess its running before the network is up put a delay in the script to give network time to kick in
      My Computer


  3. Posts : 2,246
    Windows 7 Pro SP1 64 bit
       #3

    I wonder if he got it working per your response. Hate it when people ask for help and then don't reply when someone provides assistance.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:27.
Find Us