IT:如何通过组策略在Windows客户端上映射网络驱动器
Mapping network drives is one of the most common jobs for a network administrator. In the past we used to use a script, but there is a group policy setting that can save us the scripting effort.
映射网络驱动器是网络管理员最常见的工作之一。 过去我们曾经使用脚本,但是有一个组策略设置可以节省脚本编写工作。
Note: this is part of our ongoing series teaching IT administration basics, and might not apply to everybody.
注意:这是我们正在进行的系列教学IT管理基础知识的一部分,可能并不适用于所有人。
使用组策略映射网络驱动器 (Mapping Network Drives Using Group Policy)
Open the Group Policy Management Console by searching for it from the Start Menu.
通过从“开始”菜单中搜索来打开组策略管理控制台。
You’ll want to drill down into your domain until you reach the Machines object, where you can right-click and choose to Create a GPO.
您将需要向下钻取域,直到到达“机器”对象,您可以在其中右键单击并选择“创建GPO”。
Note: Although the OU in our example is called the Machines OU it also contains some users. The Group Policy Setting that allows you to map drives is a User setting and is therefore assigned at logon, this means that the OU that you tie the GPO to should contain Users rather than only computers.
注意:尽管在我们的示例中OU被称为Machines OU,但它也包含 一些用户。 允许您映射驱动器的组策略设置是一个用户设置,因此是在登录时分配的,这意味着将GPO绑定到的OU应该包含用户,而不仅仅是计算机。
We have to give our new policy a name, we will name ours Mapped Drives (General).
我们必须给我们的新策略起一个名字,我们将命名我们的映射驱动器(常规)。
Now we can right click on the policy and choose edit.
现在,我们可以右键单击该策略,然后选择“编辑”。
The policy that controls mapped drives is located at
控制映射驱动器的策略位于
User Configuration\Preferences\Drive Maps
用户配置\首选项\驱动器映射
We need to select the policy and right click in the white space and select new mapped drive.
我们需要选择策略,然后在空白处单击鼠标右键,然后选择新的映射驱动器。
Change the action to create, and type a location for your shared folder.
更改操作以创建,然后键入共享文件夹的位置。
Now set the label, this is the name that will appear on the drive in my computer. You will also need to choose a drive letter, it is a best practice to choose a static letter across the board, the last thing you need to do is change the radio button at the bottom to Show this drive.
现在设置标签,这是将出现在我计算机的驱动器上的名称。 您还需要选择一个驱动器号,最佳做法是全盘选择一个静态字母,最后要做的就是更改底部的单选按钮以显示该驱动器。
Now when the users logon the drives will be effortlessly mapped.
现在,当用户登录时,将轻松映射驱动器。
翻译自: https://www.howtogeek.com/99403/it-how-to-map-network-drives-on-windows-clients-via-group-policy/