We help IT Professionals succeed at work.

Hoist the colors! We’ve added location flags to usernames sitewide, so it's easier to connect with the global community on EE. View My Profile

x

Windows Server 2008 R2 LOGON.BAT location

bobrossi56
bobrossi56 asked
on
11,629 Views
Last Modified: 2012-05-12
I have a new server running Windows 2008 R2. I create a LOGON.BAT file that looks like this:

if %USERNAME%==tmulroy net use O: \\DC1\OWNER
if %USERNAME%==tmulroy net use M: \\DC1\MANAGER
if %USERNAME%==smulroy net use O: \\DC1\OWNER
if %USERNAME%==smulroy net use M: \\DC1\MANAGER
if %USERNAME%==ccasillo net use M: \\DC1\MANAGER

I have placed this file in:
C:\Windows\sysvol\sysvol\mfd.com\scripts\LOGON.BAT

I have created the MANAGER and OWNER folder and shared it out to the above account names with full access.

In the above account profiles in AD, I have added LOGON.BAT to the logon script field.

When I log in using any of the 3 above accounts the M and O drives never get mapped.

HELP....thx experts, BobR
Comment
Watch Question

Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
And make sure that you are running notepad as Administrator (right click - run as) so you can save back to that directory!!

Author

Commented:
What is the path to NETLOGON folder, I don't see it under C:\Windows
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Commented:
do you see the script run during logon?  you may want to put a pause command in the bat file to give you time to see what's going on.  also have you tried mapping the drives at the client station with net use to see if it works?

Author

Commented:
The scripts folder was not shared out as NETLOGON, I did that and now it works fine. Thx all

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.