net use windows server

I want to know where in windows server 2008 I could drop a net use script to map a network drive to all computers using group policy.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Norm DickinsonGuruCommented:
You would normally put that command into the login script file and it would execute for each user as they log into Windows.

mkramer777Author Commented:
i must be asking this wrong.  I want every computer on the network to have a mapped drive that I choose to be on their computer the next time they log off or reboot.  How would I do that?
Norm DickinsonGuruCommented:
If you want to make a mapped drive available to each user, the easiest way is to include the net use command in the login script file, so that anytime a user logs in (or restarts and then logs in) the drive will map to the letter that you specify. I'm not sure what other mapping you may want to do or what you mean by a user mapping while logging off or rebooting. The mapping would only be useful to have when a user is logged in.
mkramer777Author Commented:
OK.  So what are the steps to do this?
Norm DickinsonGuruCommented:
To assign user logon scripts
Open the Local Group Policy Editor.
In the console tree, click Scripts (Logon/Logoff) . The path is User Configuration\Windows Settings\Scripts (Logon/Logoff) .
In the results pane, double-click Logon .
In the Logon Properties dialog box, click Add .
In the Add a Script dialog box, do the following:
In Script Name , type the path to the script, or click Browse to search for the script file in the Netlogon shared folder on the domain controller.

In Script Parameters , type any parameters that you want, the same way as you would type them on the command line. For example, if your script includes parameters called //logo (display banner) and //I (interactive mode), type //logo //I .

In the Logon Properties dialog box, specify the options that you want:
Logon Scripts for <Group Policy object> : Lists all the scripts that currently are assigned to the selected Group Policy object (GPO). If you assign multiple scripts, the scripts are processed in the order that you specify. To move a script up in the list, click it and then click Up . To move a script down in the list, click it and then click Down .

Add : Opens the Add a Script dialog box, where you can specify any additional scripts to use.

Edit : Opens the Edit Script dialog box, where you can modify script information, such as name and parameters.

Remove : Removes the selected script from the Logon Scripts list.

Show Files : Displays the script files that are stored in the selected GPO.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.