Mapping a drive means that you want permanent access to a shared folder created on another computer. Windows OS will assign a drive letter to the network drive and it can be accessed just like any other local drive connected to your computer.
Mapping network drives with group policy preference is very easy and it does not require any scripting knowledge. Also, We can use item-level targeting to map drives based on specific conditions like group membership, OU, operating system, etc.
In this example, We will use item-level targeting so it only maps the network drive for users who are a member of the specific security group.
For this guide already I have created.
Two users with the name HR User1 and HR User2
One security group name HRUsers. (HR User1 is a member of this security group)
It works perfectly fine for us.
Now, any user we put in the HRUsers security group will get this mapped drive.