Logon script not working
We have a Windows domain and we are using logon scripts for users to map network drives, set time, etc. The logon scripts are located on a Windows 2003 Server under the following directory: C:\WINDOWS\SYSVOL\sysvol\pacertechnology.com\scripts. Users are associated with the logon scripts (for example: user1.bat, user2.bat. etc.) using their user profile in Active Directory User and Computers. Sometimes when we remove old servers from the domain, we need to modify the logon scripts to remove users drive mapping to those servers. But when the users logon, their computer (Windows XP) still try to map to the removed servers. Just to be sure that we are not dealing with a locally cached logon script, we also have tried to logon using a brand new computer, and that computer also tries to map to the removed servers. Any idea why and how to fix it? Thank you.
June 4th, 2012 11:34pm

Hello, Check Logon script once again and remove old server names, if any? If you removed any servers(if it is DC) from domain, need to delete complete data from domain by using the concept of metadata cleanup. Useful link is:http://www.petri.co.il/delete_failed_dcs_from_ad.htmRegards, Ravikumar P
Free Windows Admin Tool Kit Click here and download it now
June 4th, 2012 11:43pm

did you specify to reconnect when you were mapping the drive in the logon script? It might be something with the profile that is keeping the drive mapped and nothing to do with the actual logon script. Also having a batch file for every user to map drives seems like a lot of overhead. Would be better of using ifmember command to determine if a user is in a certain group then map this drive. http://www.microsoft.com/en-us/download/details.aspx?id=7895
June 4th, 2012 11:56pm

Hi Best way is to delete old records in script and put new. This sould resolve your problem For example net use x: /delete (where x: pointed to old server) net use x: \\newserver\shareBest regards Dubravko Marak MCP Blog: Windows Server Administration Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2012 6:29am

Hi Best way is to delete old records in script and put new. This sould resolve your problem For example net use x: /delete (where x: pointed to old server) net use x: \\newserver\shareBest regards Dubravko Marak MCP Blog: Windows Server Administration Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 5th, 2012 6:40am

Hi, > Users are associated with the logon scripts (for example: user1.bat, user2.bat. etc.) Do you mean each user has its own script? > sometimes when we remove old servers from the domain, we need to modify the logon scripts to remove > users drive mapping to those servers. How you modify user logon scripts, replace server name directly? And could you please post your script code, thats useful for troubleshooting. As Dubravko Marak posted above, you may modify user script to delete old drive map, then add the new one. Assume the old script is: net use x: \\server1\share Modify it to: net use x: /delete net use x: \\server2\share Please try it and give us feedback for further troubleshooting. For more information please refer to following MS articles: Assign a logon script to a user in the Active Directory http://technet.microsoft.com/en-us/library/cc779490(v=ws.10) Net use command http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true Hope this helps! TechNet Subscriber Support If you areTechNet Subscription user and have any feedback on our support quality, please send your feedback here.Lawrence TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2012 10:56pm

Hi, > Users are associated with the logon scripts (for example: user1.bat, user2.bat. etc.) Do you mean each user has its own script? > sometimes when we remove old servers from the domain, we need to modify the logon scripts to remove > users drive mapping to those servers. How you modify user logon scripts, replace server name directly? And could you please post your script code, thats useful for troubleshooting. As Dubravko Marak posted above, you may modify user script to delete old drive map, then add the new one. Assume the old script is: net use x: \\server1\share Modify it to: net use x: /delete net use x: \\server2\share Please try it and give us feedback for further troubleshooting. For more information please refer to following MS articles: Assign a logon script to a user in the Active Directory http://technet.microsoft.com/en-us/library/cc779490(v=ws.10) Net use command http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true Hope this helps! TechNet Subscriber Support If you areTechNet Subscription user and have any feedback on our support quality, please send your feedback here.Lawrence TechNet Community Support
June 5th, 2012 11:00pm

Hi, I would like to confirm what is the current situation? Have you resolved the problem? If there is anything that we can do for you, please do not hesitate to let us know, and we will be happy to help.Lawrence TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 10th, 2012 9:51pm

You can also have one script for all users. For specific user tasks you can use variable %username%Best regards Dubravko Marak MCP Blog: Windows Server Administration Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 11th, 2012 5:29am

Hi, As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as Answered as the previous steps should be helpful for many similar scenarios. If the issue still persists and you want to return to this question, please reply this post directly so we will be notified to follow it up. You can also choose to unmark the answer as you wish. In addition, we'd love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems. Thanks! Lawrence TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2012 9:28pm

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

Other recent topics Other recent topics