Announcement

Collapse
No announcement yet.

Login Script via GPO Issues

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Login Script via GPO Issues

    I have a log in script setup for users in the corp office. When the users log in the script run and mapps drive, time etc. When the script finishes the users have to close the window. I can't figure out why it does not close on it's own. Anyone got any ideas?

    Here is the script.

    Code:
    @echo off
    REM Title CRSV.COM Logon Scripts
    
    REM ----------------------------------------------------------------
    c:
    cd\
    cd windows
    cd system32
    
    REM ----------------------------------------------------------------
    net use h: /delete
    net use r: /delete
    net use s: /delete
     
    
    net use h: \\rocks.crsv.com\%USERNAME%$
    net use r: \\amethysts20.crsv.com\filestore$
    net use s: \\rocks.crsv.com\group
    net use w: \\netserv2.csv01.com\webapps$
     
     
    REM --------------------------------------------------------------------------------------------
    REM Sync Corporate Office users to the DC time, RV 05-01-2002
    REM --------------------------------------------------------------------------------------------
    echo %time %date%
    net time \\crsv.com /set /yes
    echo %time% %date%
    REM --------------------------------------------------------------------------------------------
    REM RMS Registry Entry, DB 03-15-2007
    REM --------------------------------------------------------------------------------------------
    regedit /s \\rocks\ISMAP\Scripts\RMS\rms.reg
    
    REM --------------------------------------------------------------------------------------------
    REM Free Section
    REM --------------------------------------------------------------------------------------------
       
     
    REM --------------------------------------------------------------------------------------------
    REM Free Section
    REM --------------------------------------------------------------------------------------------
     
     
    :end
    exit
    Last edited by Rems; 23rd October 2009, 16:01. Reason: adding [CODE]-tags

  • #2
    Re: Login Script via GPO Issues

    There is a typo in:
    echo %time %date%

    syntax error:
    net time \\crsv.com /set /yes


    Possibly right/privileges issues in,
    | NET.EXE TIME \\computerNBname /SET /YES
    | requires privileges to set time!
    =and,
    | Regedit.EXE /s "\\rocks\ISMAP\Scripts\RMS\rms.reg"
    | If entries in rms.reg merges with any policy keys or, with keys
    | outside HKCU - where to the user has no Write access.


    Don't end the batch with EXIT


    \Rems

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: Login Script via GPO Issues

      Thanks I'll take a look at it and see what happens.

      Comment

      Working...
      X