login script crashes
Hi, I have an issue of a login script failing due to a weird wireless network issue involving MS-PEAP which I'll briefly explain: Computer connects to wireless successfully as itself.User authenticates.Roaming profile loads.AD Login script startsComputer switches to being connected to the wireless as the user. (randomly fails)If step 5 fails login script hangs When the login script hangs then closes, if I look in the event viewer I see "The TCP/IP NetBIOS Helper service has successfully sent a stop control". Since I was having trouble fixing the step 5 issue, I thought I would be tricky by having a login script (batch file) which has "timeout 20" at the start, if step 5 fails, then it does a netsh wlan disconnect netsh wlan connect profile_name which would be a workaround for the step 5 issue and the login script could complete successfully. I would have thought the computer would load the script into memory and keep running if it lost connection to the share it was loaded from , but no :( QUESTION Is there anyway to get a login script to keep running even if the network goes down? Thanks in advance!
May 10th, 2012 2:02am

1. Have you set the "Wait for network..." GPO? 2. Test scripts with IP instead of name to avoid name resolution (something like net use t: \\192.168.3.1\share) 3. What is the node type, that you use? (from ipconfig /all) 4. It is a bit provocative, do you really need login scripts (I use explorer \\server\share with pause). 5. Could you limit the number of name resolution mechanisms (to only 445), or users like to see all network devices (legacy ports and mechanisms) Regards Milos
Free Windows Admin Tool Kit Click here and download it now
May 10th, 2012 7:43am

There is a few things you can try. Copy the logon script locally and then invoke it from the system rather than remotely. (Not very secure but it could work) Use error handler, try to capture the error number and then maybe tell the script to wait certain amount of time or stop the execution. If you are using vbscript then you can use "On Error Resume Next".
May 10th, 2012 10:08am

Hi, For script related issue or request, it is recommended to post the thread in Scripting Forums. Hope this helps. Jeremy Wu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2012 5:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics