How To Map Drive In Windows Server 2012 R2
You can utilise Grouping Policies to flexibly map shared network folders from your SMB file servers as divide Windows network drives. Traditionally, .bat logon scripts containing the cyberspace use M: \\ro-fs01\sharename
command were used to map network drives in Windows. Nevertheless, Group Policies are more flexible, faster and may be updated in the groundwork (you don't need to reboot a computer or log off to map network drives via GPO).
In this article we'll show you how to use GPO to map network drives in Windows.
The support of network drive mapping in GPO appeared in Windows Server 2008.
Lets' look on how to automatically map a department shared network binder based on AD security groups and users' personal network drives. Create a new security group for a Marketing section in Active Directory and add together the employee accounts to information technology. You tin create and make full the group using the graphic ADUC console (dsa.msc
) or apply the PowerShell cmdlets to manage AD groups (included in the Ad for PowerShell module):
New-ADGroup "It-Marketing" -path 'OU=Groups,OU=Rome,OU=It,dc=woshub,DC=com' -GroupScope Global -PassThru –Verbose
Add-AdGroupMember -Identity IT-Marketing -Members b.bianchi, k.rossi, a.russo, chiliad.baffi
Suppose, you have a file server where shared folders of dissimilar departments are stored. The UNC path to the shared folder that your marketing team is using and which should exist mapped to all employees in the section is \\ro-fs01\share\marketing
.
Then create a GPO to map the shared binder equally a network drive.
- Open the Grouping Policy Management Console (
gpmc.msc
) to manage the domain GPO; - Create a new GPO and link it to the user business relationship OU, and then select Edit;
- Go to User Configuration -> Preferences -> Windows Settings ->Drive Maps. Create a new policy setting: New -> Mapped Drive;
- In the General tab, specify the connexion settings for your network drive:
- Activity: Update (this mode is used the most often);
- Location: a UNC path to the shared folder yous want to connect;
- Label as: a drive label;
- Reconnect: makes a network drive permanent (information technology will be reconnected every time you log in, fifty-fifty if you remove the policy. At that place is a /persistent analog pick in
net utilise
); - Drive Letter: assign a drive letter for shared folder;
- Connect as: this option is not available at present since Microsoft currently doesn't allow storing passwords in Group Policy settings.
- Get to the Common tab, cheque the Run in logged on users'due south security context and Item-level Targeting options. And so click Targeting;
- Here nosotros volition specify that this policy must be applied but to the members of the Advertising security group created earlier. Select New Detail -> Security Group -> your grouping name;
- Save the changes;
- The mapped network drive will exist available in File Explorer and other programs appears in the user session afterward the GPO is updated.
Create another policy dominion to map personal network folders of the users as network drives. Suppose, y'all take a file server where personal user folders are stored (each folder has individual NTFS permissions then that users cannot access anybody else'due south data). You desire these folders to exist automatically mounted as network drives in user sessions during logon.
Create a dissever folder for each user matching their AD names (sAMAccountName) and assign the corresponding NTFS permissions.
Create another drive mapping dominion in the same GPO.
Specify the path to the shared folder with user personal folders as \\ro-fs01\shared\habitation\%LogonUser%
. I have set %LogonUser% - Personal
as a drive label.
You can brandish the full list of surroundings variables available in GPP by pressing F3.
Relieve the changes and update the group policy settings on user computers using this command:
gpudate /forcefulness
Then users volition see their personal folders from a file server mapped every bit network drives. Users will be able to shop their personal information on them. The network bulldoze will be mapped on any estimator a user is logged on to.
Thus, you tin create a lot of split up items with unlike weather condition of mapping network drives to users in a unmarried GPO.
To select different computer or user criteria when connecting network drives, GPP targeting features are used (they are based on WMI filters).
Source: http://woshub.com/map-network-drives-shared-folders-gpo/
Posted by: morrisonnotilen.blogspot.com
0 Response to "How To Map Drive In Windows Server 2012 R2"
Post a Comment