+ Post New Thread
Results 1 to 6 of 6
Windows Server 2008 R2 Thread, Logon script issue in Technical; Ok this has had me scratching my head now. Recently two scripts have stopped working correctly. They have worked fine ...
  1. #1

    Join Date
    Jun 2006
    Location
    Kendal
    Posts
    85
    Thank Post
    2
    Thanked 15 Times in 11 Posts
    Rep Power
    20

    Logon script issue

    Ok this has had me scratching my head now.

    Recently two scripts have stopped working correctly. They have worked fine previously and to the best of my knowledge nothing pertinent to scripts has been altered GPO wise recently.

    The script is running but it seems to be missing out certain parts. In particular the creation of folders. If I manually create the first folder then the drive will map at logon (so script is running)
    However the Files folder is then NOT created.

    -----
    md "\\fps03\CA$\Current\%username%"

    net use T: "\\fps03\CA$\Current\%username%" /persistent:NO

    net use H: /delete /y
    net use V: /delete /y
    net use Y: /delete /y
    net use Z: /delete /y

    t:

    md "T:\files"

    c:\robocopy.exe \\Fps03\CAfiles$\ t:\files /e
    ------
    If the user runs this batch file from the desktop it runs fine, creation, mapping and copying.

  2. #2
    ricki's Avatar
    Join Date
    Jul 2005
    Location
    uk
    Posts
    1,477
    Thank Post
    20
    Thanked 164 Times in 157 Posts
    Rep Power
    53
    Hi

    Is this on a machine?

    Has this machine got a gig port?

    Is the script running before the network is operational on the machine?

    Does system and the correct group have the permissions to create this folder?

    Normally when I create a user folders are created and permissions set at that time.

    Is there anything in the event log?

    Is there anything in the rsop.msc?

    Richard

  3. #3
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    What happens when you login as a user and run the script in cmd?

  4. #4

    Join Date
    Jun 2006
    Location
    Kendal
    Posts
    85
    Thank Post
    2
    Thanked 15 Times in 11 Posts
    Rep Power
    20
    @apeo as stated (right at the end of my post) It runs fine.

    This was all set up and working just fine until recently. Possibly a WU that has broken something.
    @ricki

    Machine -yes, I assume you mean a client PC.

    All our machines have 1Gig ports however most just run at 100Mb, including the one I'm testing on beside me.

    Permissions were set a while back and the User I can confirm does have permission to create a folder.

    Nothing in Event log bar a few errors as it's trying to redirect some folders to the T drive.

    Well my group policy results wizard shows the script has been applied and nothing untoward.

  5. #5

    Join Date
    Jun 2006
    Location
    Kendal
    Posts
    85
    Thank Post
    2
    Thanked 15 Times in 11 Posts
    Rep Power
    20
    Ok so I tested a staff account and the script runs fine. It's not a permission issue but at this stage I'm thinking it's mandatory profile related.

    <edit> It is mandatory profile related</edit>
    Last edited by Finch7; 23rd May 2013 at 12:19 PM.

  6. #6
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42
    Sorry, didn't read that bit because I thought it was part of you signature . Assume your users are on Windows 7, here we've had some funny problems with bat scripts so we generally use vbscripts and/or powershell. Funny thing is sometimes we use vbscripts to launch the shell.



SHARE:
+ Post New Thread

Similar Threads

  1. Logon Script Issue
    By Sam_Brown in forum Windows Server 2008 R2
    Replies: 3
    Last Post: 9th May 2013, 03:15 PM
  2. Logon Script Issues
    By AngryITGuy in forum Windows Server 2000/2003
    Replies: 9
    Last Post: 12th September 2011, 09:49 AM
  3. Drive mapping issues in logon scripts
    By Bruce123 in forum Windows
    Replies: 10
    Last Post: 20th September 2009, 01:22 PM
  4. Stupid CMD error with logon script
    By tarquel in forum Windows
    Replies: 37
    Last Post: 14th June 2006, 10:07 AM
  5. God Dam Logon Scripts
    By british-wave in forum How do you do....it?
    Replies: 14
    Last Post: 15th February 2006, 03:28 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
  •