Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Net Use Never Asked For User/Pass Before

Status
Not open for further replies.
May 15, 2012
2
US
I had a network change over the weekend, adding two new servers (2008 R2) and making them DCs and demoting the old DC (2003 R2). The old server still contains network drives that everyone uses. There is a login script on the DC that looks like so:
@echo off
net use /delete * /y
net use Z: \\servername\shared
net use Y: \\servername\usershares
net use X: \\servername\%username%
net time \\servername /set /yes
Been using this successfully for years. Never asks for a username or password before. Out of 19 workstations, most of them are still working fine after the dust settled. There were some DNS issues, but they were repaired. Meanwhile there are 3 workstations that now ask for the domain admin user and domain password every time they start their systems. Just those 3. Everything on the 2003 server looks the same in terms of permissions as everyone else. I don't really wish to add the username/password to the script if I don't have to. The one common thread is these are all Windows 7 and one is a 64-bit. But, I have other workstations working just fine that are Windows 7 and 64-bit. All of the XP workstations have no problems. What is going on?
 
Have solved this problem! While I was having DNS problems over the weekend, these 3 PCs gave me a chance to do a login authentication I wasn't expecting to do. And I told it to remember...why do it again, I'm thinking. And that was the problem. It was using the %username% to feed in the windows name, except I think it was actually feeding in Administrator and then couldn't find the share on the server. I found a reference elsewhere to removing stored logons:

rundll32.exe Keymgr.dss, KRShowKeyMgr

This allowed me to remove that login that had been saved and then rebooted and the script was back to normal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top