Link to home
Start Free TrialLog in
Avatar of guypp
guypp

asked on

Editing netlogon.bat

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
Avatar of Roachy1979
Roachy1979
Flag of United Kingdom of Great Britain and Northern Ireland image

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....

Avatar of guypp
guypp

ASKER

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
Avatar of guypp

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of guypp
guypp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial