• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Login.bat on Windows 2003 Domain Controller

I have the following login.bat on Windows 2003 Domain Controller:

sc config wuauserv start= auto
sc start wuauserv
net use u: /d /y
net use x: /d /y
rem net use x:\\atcosql\solomon
net use x:\\atcoterm\soliv

Since last week on rebooting the DC the command window appearing for execution on the batch file hangs up and the batch file does not execute. The second domain controller in the domain also experiences the same problem.
0
Tajammalw
Asked:
Tajammalw
  • 4
  • 4
  • 2
  • +1
1 Solution
 
Joseph DalyCommented:
I would try changing this

rem net use x:\\atcosql\solomon
net use x:\\atcoterm\soliv

to this

rem net use x: \\atcosql\solomon
net use x: \\atcoterm\soliv

I dont know if the space is necessary but I always include it.
0
 
stu29Commented:
If you drag your batch file in to a command prompt window .. at which line does it fail?
0
 
MaheshArchitectCommented:
You must give space between map drive letter and actual path, other wise it won't work

Net use X: \\shared_path
Also if shared path has spaces, include it in inverted commas
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
TajammalwAuthor Commented:
Only the first line opens which is:
U:\sc config wuauserv start= auto
0
 
TajammalwAuthor Commented:
I may add that this batch file has been working for atleast 10 years. It is only after I installed an Symantec Endpoint Protection upgrade that it started malfunctioning.
0
 
MaheshArchitectCommented:
One more thing forgot to say

You have put drive map script as startup script hence it won't work and whatever is result you are getting is expected because only service can be started with startup script

Use map drive script in user logon instead of computer startup and keep service in startup script only
0
 
TajammalwAuthor Commented:
Please show me what you are suggesting. Thanks.
0
 
stu29Commented:
Have you tried to disable Symantec and running your script to narrow down to see if this is the culprit?  If it runs while Symantec is disabled then I would look at your tamper protection settings
0
 
MaheshArchitectCommented:
Make TWO .bat files
1st one:

sc config wuauserv start= auto
sc start wuauserv

and

2nd one:

net use u: /d /y
net use x: /d /y
net use x: \\atcoterm\soliv
OR
net use * /d /y
net use x: \\atcoterm\soliv

open gpedit.msc or default domain controller policy and put 1st .bat file as startup script under computer configuration

put 2nd .bat file under user configuration logon script

Then  reboot the server and check
0
 
MaheshArchitectCommented:
For starting up service you can use System services setting under above GPO if wanted to
0
 
TajammalwAuthor Commented:
This worked for me. Thanks.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now