+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 28
Windows Thread, login Script not working in Technical; Hi Im having a very strange problem where the students login script doesn't get applied to all students despite the ...
  1. #1

    Join Date
    May 2008
    Posts
    536
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    16

    login Script not working

    Hi

    Im having a very strange problem where the students login script doesn't get applied to all students despite the batch file being in the user account profile.

    It only seems to happen occasionally and not to everyone.

    The batch just maps a share to the students shared directory.

    During the summer i added a 2008 R2 DC to my existing 2 2003R2 DC's so not sure if this it causing problems.

    Has anyone else had the same problems?

    Many Thanks

  2. #2

    Join Date
    May 2008
    Posts
    536
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    16
    Update: sometimes a reboot of the station will work but other times it wont!

  3. #3

    Join Date
    Jan 2008
    Posts
    51
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    Yes, Mine only has 2003 servers. Sometimes the mapping works and sometimes it doesn't - With students it's about 1 in 50 logins , with staff it's about 1 in 10
    Same thing, reboot and the first login works OK. Have you got XP SP3 ?

  4. #4

    Join Date
    May 2008
    Posts
    536
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    16
    Yes. It seems strange that its only happened after I installed a 2008 r2 dc and I migrated the students home dir and share to 2008 r2 server.

    Have you any ideas?

  5. #5

    Join Date
    Jan 2008
    Posts
    51
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    Mine started happening after I moved staff home directories to a new 2003 R2 server
    I am running a test today as I had an inspiration this morning ... I'll let you know what happens

    M

  6. #6

    Join Date
    May 2008
    Posts
    536
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    16
    I know this may not help but i have recreated the gpo for the students and i will see if thats had an effect.

  7. #7

    Join Date
    Jan 2008
    Posts
    51
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    I have tried:-
    Recreating the user account - improves it but doesn't completely fix it

    Delete all the users Documents and settings and their application data - doesn't do a whole lot

    Use IP addresses in the login scripts instead of names - also doesn't do a lot either

    I am now trying sync login scripts and don't detect slow networks

    When it doesn't work I just get 'network name could not be found' even if I'm useing IP addresses. A reboot and it works again

    Let me know if you get any more ideas please

    Ta

    M

  8. #8

    Join Date
    May 2008
    Posts
    536
    Thank Post
    18
    Thanked 8 Times in 8 Posts
    Rep Power
    16
    i dont get any errors just the drive not appearing. I recreated the students GPO and it made things better although i still get the odd on or two that dont get the network drive. Very Strange and doing my head in!!!

  9. #9
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,007
    Thank Post
    124
    Thanked 286 Times in 263 Posts
    Rep Power
    109
    In my experience when this sort of thing happens it is a performance issue. It just isn't able to map the drive and the time with everyone logging on. Our old file server was like that and when we upgraded the problem disappeared.
    Where exactly are you storing the batch file?

  10. #10

    Join Date
    Jan 2008
    Posts
    51
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    the login script is in windows/sysvol/blah/blah/staff.bat and is replicated around

  11. #11

    Join Date
    Sep 2010
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I think you need to establish if it's an error starting the script, or if it's an issue mapping the drive.

    Try re-writing the script to have the first line just dump the current date/time to a text file. You can then check to see if the script runs at all, or if it does and is not mapping the drive for some reason.

    An example batch script is:

    md c:\logs
    echo ---------------- >> c:\logs\loginscript.txt
    date /t >> c:\logs\loginscript.txt
    time /t >> c:\logs\loginscript.txt
    net use j: \\someserver\someshare

    this outputs a file 'c:\logs\loginscript.txt' looking like:

    ----------------
    Mon 13/09/2010
    01:59 PM
    Last edited by lukeod; 13th September 2010 at 06:08 AM.

  12. #12
    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

    If you are on a windows 2008 server have a look at this. You can map drive in group policy Group Policy related changes in Windows Server 2008 - Part 3: Introduction to Group Policy Preferences

    Richard

  13. #13
    Azhibberd's Avatar
    Join Date
    May 2008
    Location
    Newbury,Berkshire
    Posts
    169
    Thank Post
    20
    Thanked 21 Times in 20 Posts
    Rep Power
    17
    When you say 'network name could not be found', Is this the batch script causing that error to say the shared drive isn't available or is that windows throwing that error up to say it couldn't find the batch script? I know before i've seen domains getting this error when a dc wasn't correctly removed and the login was trying to run batch script from old dc that is no longer available!

  14. #14

    Join Date
    Jan 2008
    Posts
    51
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    15
    System error 67 The network name could not be found

    The batch file is running as the 'echo' I put in and the pause so
    I could read the messages are there - it's just my 'net use' bits don't work

    Then if I reboot the box it'll work fine ;-(

    M

  15. #15
    Azhibberd's Avatar
    Join Date
    May 2008
    Location
    Newbury,Berkshire
    Posts
    169
    Thank Post
    20
    Thanked 21 Times in 20 Posts
    Rep Power
    17
    On the machines that fail to connect to the share, Can they actually ping the server your trying to connect to? Not something like your hitting your max connections on that server?



SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Login Script ..
    By soveryapt in forum Windows
    Replies: 7
    Last Post: 26th February 2010, 06:02 PM
  2. [CLOSED] Layout Issue: Button on login/Log out not working
    By Edu-IT in forum EduGeek.net Site Problems
    Replies: 12
    Last Post: 7th December 2009, 10:22 AM
  3. Mac Login Script
    By gybe78 in forum Mac
    Replies: 2
    Last Post: 9th September 2008, 11:51 AM
  4. Replies: 10
    Last Post: 5th September 2008, 12:29 PM
  5. Admin login not working?
    By fafster in forum EduGeek Joomla 1.5 Package
    Replies: 1
    Last Post: 2nd June 2008, 04:48 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
  •