Logon Batch files_Enter UserName for Server

Posted on 2011-03-01
Last Modified: 2012-06-27
We have a two site domain (same domain – just two sites – two subnets).
Site one contained two domain controllers Sever1 (FSMO) and Server2.
Server2 was also an Exchange server (before my time), and File server.

Site two has one domain controller, PLT2SRV1.
All have Windows Server 2003 SP2 installed.

We had a Domain controller on site one die (Server2)
The server has been rebuilt and renamed as Exchange1. Exchange1 is now a member server, with Exchange 2003 installed, and still functioning as a File server.

I have logon batch files set up on domain controllers (sysvol). They are basic mapping of drives to groups of users, and clock syncing with FSMO domain controller.
Here is an example of batch files:

@echo off

net use K: \\SERVER1\Database$ /y
net use G: \\exchange1\Finance$ /y
net use Q: \\exchange1\Quality$ /y

net time /setsntp: Server1
net time \\Server1 /set /yes

These have work fine for years. When you log on, you might see a quick flash of the DOS window and your drives were mapped and good to go.  Now after the server melt down and rebuild. They work fine for two weeks and now when you logon, the DOS window stays up, and it tries to map drives but gives a few lines of “Continuing will cancel the connections.”, and "The command completed successfully” (one for each drive mapping).
Then ends with an “Enter the user name for ‘Server2’:    (see enclosed).

Most users get there drives mapped, but a few don’t and all the users have to close out the DOS window

Sounds kind of like a permissions thing, but why after all these years and still yet two weeks after rebuild, before it started doing this?

I don’t want no user name or passwords for the users from logon scripts (just logon with the username and passwords). No user actions.

Experts have any ideas?
I am beside myself on what to do next.

Thanks in Advance!

 DOS Logon window
Question by:Fubr
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 96

Accepted Solution

Lee W, MVP earned 500 total points
ID: 35014270
Comment out or remove the @echo off line si you can confirm what line is causing the problem.  Then check your event logs on the client and DCs as you probably have some communication issues between them

Author Comment

ID: 35014347
Thanks leew,

I have removed the @echo off, and will review the logs first thing in the morning.

LVL 47

Expert Comment

by:Donald Stewart
ID: 35014365
Do you have any Windows 7 clients on your network?

GP Preferences Will Reduce Logon Scripts : Mapping Drives

Author Comment

ID: 35014395
Sweet!!  Might have figured it out.
We use to have a "Public" folder mapped for everyone to share.
I haven't restored this folder yet, but the mappings in logon script is still there.

Timeline wise, I just added our certificate and brough Web Mail (OWA) back online.
So When the login scripts are mapping to the Public folder, it thinks it is the IIS folder and is asking for a username.

Knew it had to be somthing simple.

Thanks for the help leew, your advice let me see what was happening.
I will verifiy this in the morning.

Thanks a million  (sanity saver)


Author Closing Comment

ID: 35014700
Thanks for the Help Experts!!

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question