We help IT Professionals succeed at work.

Editing netlogon.bat

2,014 Views
Last Modified: 2011-10-19
I am running a small office network, with SME 7.3 as the server and clients are windows XP professional SP2.

SME is set as the Domain Controller.

I have created several users and several groups. I have also set up several i-Bays, access to which is determined for users according to which group a user belongs to.

The XP machines are configured to logon to the domain and when different users logon, their personal i-Bay (automatically created for each user) is mapped to the machine they are logging on from.

I would like to configure the netlogon.bat so that when a user logs on, s/he gets access to all the i-bays that they have access to. There are only about 20 users, so it is feasible to add an entry for each user manually in the netlogon.bat, although automatic would be better.

Please can someone assist me with the edits that need to be made to the netlogon.bat file in order to achieve this. The default SME netlogon.bat file is attached
netlogon.bat.txt
Comment
Watch Question

Not sure what you mean by an I-Bay, but to map to a network share, just add the line

net use <DriveLetter>: <sharepath>

for example....

net use S: \\servername\sharename

If you have shares that match the users name then you can also do:

net use F: \\servername\%username%

You may need to create different login scripts for different users - you can specify the name of the login script in AD Users and Computers for the individual user - just remember that the script needs to live in the \\servername\netlogon share....

Author

Commented:
Thanks for your tips, I can now map drives as indicated using net use...

i-Bay is SME Server terminology for a share of the HDD, read/write access to these shares is group, not user orientated, as a user gets access to i-bays depending on which group they belong to. This means though that any user may have access to several shares (in this case anyway), so I don't think

 net use F: \\servername\%username%

will work. I would be interested in writing different scripts for each user, but cannot find the location where I would specify the name of the login script for each user. Is this on the windows machine or in the SME Server Manager console? Grateful if you could elaborate on this.

Thanks

Author

Commented:
To clarify the above, this is the current position - I have 3 i-Bays (i-Bay1, i-Bay2 & i-Bay3) and 2 groups (groupa & groupb) each with 3 users

users from groupa should be able to access i-Bay1 & i-Bay2 when they logon
users from groupb should be able to access i-Bay2 & i-Bay3 when they logon

using the net use F: \\servername\%username% doesn't do anything, as SME by default maps a user's personal drive when they logon.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

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.