Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Scripts

Status
Not open for further replies.

Bashiraad

Technical User
Apr 19, 2007
12
GB
Hi,

I would like to map a network drive for each user (personal Drive) which is named as their username.

I have tried different scripts but cant seem to get this working.

i need to map to \\server\data\users\"Username"

Also do i place this script in \\server\netlogon or

\\server\c$\WINDOWS\SYSVOL\sysvol\Domain\Policies\{77F76B25-6C97-4D0F-A37D-DC6A34C6929A}\User\Scripts\Logon
 
Refer to my FAQ which has all the answers you have requested. faq329-5798

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Code:
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("cmd /c use h: /home /y"),0,True

placed in the \\server\c$\WINDOWS\SYSVOL\domain\scripts and in active directory set the user's home directory to "username" or the same name you have given their share.
 
and in active directory set the user's home directory

The home directory property in AD is a legacy setting for integration with NT4. A search within this forum will illustrate how unrelaible this tends to be. It is my recommendation to avoid the use of this and use vbscript to simply map the drive which is an easy task. As referenced above my FAQ has what you need.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top