net use windows server

mkramer777
mkramer777 used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

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

See https://technet.microsoft.com/en-us/library/cc770908.aspx

Author

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?

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

Author

Commented:
OK.  So what are the steps to do this?
Commented:
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.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial