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 ...
-
6th September 2010, 01:05 PM #1
- Rep Power
- 12
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
-
-
IDG Tech News
-
6th September 2010, 02:05 PM #2
- Rep Power
- 12
Update: sometimes a reboot of the station will work but other times it wont!
-
-
8th September 2010, 05:58 PM #3
- Rep Power
- 11
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 ?
-
-
8th September 2010, 06:53 PM #4
- Rep Power
- 12
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?
-
-
9th September 2010, 08:40 AM #5
- Rep Power
- 11
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
-
-
9th September 2010, 09:32 AM #6
- Rep Power
- 12
I know this may not help but i have recreated the gpo for the students and i will see if thats had an effect.
-
-
9th September 2010, 02:21 PM #7
- Rep Power
- 11
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
-
-
9th September 2010, 09:04 PM #8
- Rep Power
- 12
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!!!
-
-
9th September 2010, 09:38 PM #9 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?
-
-
10th September 2010, 09:14 AM #10
- Rep Power
- 11
the login script is in windows/sysvol/blah/blah/staff.bat and is replicated around
-
-
13th September 2010, 04:58 AM #11
- 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 05:08 AM.
-
-
13th September 2010, 09:06 AM #12 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
-
-
13th September 2010, 12:21 PM #13 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!
-
-
13th September 2010, 01:02 PM #14
- Rep Power
- 11
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
-
-
13th September 2010, 01:18 PM #15 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: 
Similar Threads
-
By soveryapt in forum Windows
Replies: 7
Last Post: 26th February 2010, 05:02 PM
-
By Edu-IT in forum EduGeek.net Site Problems
Replies: 12
Last Post: 7th December 2009, 09:22 AM
-
Replies: 2
Last Post: 9th September 2008, 10:51 AM
-
By Geoff in forum Scripts
Replies: 10
Last Post: 5th September 2008, 11:29 AM
-
By fafster in forum EduGeek Joomla 1.5 Package
Replies: 1
Last Post: 2nd June 2008, 03: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
-
Forum Rules