Link to home
Start Free TrialLog in
Avatar of genehunt
genehunt

asked on

Drive mapping script

Hi there
My 'scripting guy' has become victim to the swine flu which has left me single handily deploying a domain.

I'd be utterly grateful if someone could help me compose a script, ideally dos command based/batch script that will query the logging on user's user name in Active Directory and will map the h: to that user's private area.

i.e. jsmith logs on script runs in Windows xp and \\servername\users\jmsith is mapped accordingly where ever the user logs on.

I'm partial to kix too but unfamiliar.

Detailed instructions would be utterly appreciated.

Kind regards
Gene Hunt
ASKER CERTIFIED SOLUTION
Avatar of John
John
Flag of Canada image

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

Dear Gene,

An easier way to avoid scripting to map a 'home' folder for your users is to set it up on the Active Directory's Object Properties.

I added an example image for your review.


It is still posible to make a script that queries the server through WMI to gather data and... but I think the easier the better.

Hope this helps~~

Yours,
Medianoche
mewmew.jpg
SOLUTION
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
SOLUTION
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
SOLUTION
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
Avatar of genehunt

ASKER

Thank you all, the suggested methods all worked and i now users able to logon and map their drives :)

@Medianoche, this only seems to work users logging onto the server, not the clients. Are their additional steps required here?
Thank you for the update and the points. .. Thinkpads_User