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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mapping network drive

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need to know how to map a network drive for all users, also i know theres an option to do it using a log on script something like net use (drive) something something. can anyone tell me what the command is or tell me if there a group policy that can do it for all the users.
thanks
don
 
If you only need one, you could use the home directory feature (right click a user name, click the Account tab). This is the command you'd want for a login script: "net use x: \\server\share". Replace "X:" with whatever drive you want. Hope this helps. Darrell Mozingo
MCP (soon MCSA), A+, Network+, i-Net+, MOUS 2000 Master
 
First I would write a .bat script file.

Next, I would go to Active Directory Users and Computers.

I would create an OU folder such as Dept.

I would move all users that you want to apply the script file.

Right click the Dept folder and and click Properties.

Click on the Group Policy tab and click Edit.

Under user configuration, click on Windows Setting.

Next double click on the Logon and the click add.

I would then click browse and see where I need to drop the script file. Once you drop the script file in the right place, then mapping should automatically work when a user logon.

If you have any question, let me know.
At this point, you can add the script file
 
Whatever you do, make it simple to change: so you don't have to go hit every machine to change something a year or two down the road when a server name or sharename changes............. Do something - learn something - It isn't going to fix itself.
 
This is a sample batch file.

Open a notepad and save it as a .bat

@echo on
net use i: /delete
net use i: \\domain\software

net use h: /delete
net use h: \\domain\ntcdrom

net time \\domain /SET /YES

domain is where you have your share file such as software.
Do that for every share file you want to run in your script.

Put net time at the end so it can synchronize your time.
I don't know much about scripts but that's what I have running on my company network.

Hope that helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top