domain
Grp Policy Basic
Windows Server 2025: Group Policy Automation
Use Group Policy (GPO) to map drives and install software automatically upon login/boot.
Basics: Creating a GPO
- Open Group Policy Management (
gpmc.msc). - Expand your Forest > Domain >
corp.internal>_CorpData. - Right-click
UsersOU > Create a GPO in this domain, and Link it here…- Name:
User_Standard_Config.
- Name:
- Right-click the new GPO > Edit.
Task A: Auto-Map Network Drive
- In the GPO Editor, navigate to:
User Configuration > Preferences > Windows Settings > Drive Maps - Right-click > New > Mapped Drive.
- General Tab:
- Action: Update.
- Location:
\\DC01\HR_Docs(Use the share path). - Reconnect: Checked.
- Label:
HR Files. - Drive Letter:
H:
- Common Tab (Item Level Targeting):
- Check Item-level targeting > Targeting…
- Click New Item > Security Group.
- Select group
FS_Department_HR_RW. - Result: Only HR members get the H: drive mapped.
Task B: Auto-Install Software (MSI)
Note: This works best with .MSI files. EXE files usually require scripting.
- Prepare the Source:
- Put the MSI file (e.g.,
Chrome.msi) in a shared folder accessible by everyone (Read-Only). - Example path:
\\DC01\Software\Chrome.msi.
- Put the MSI file (e.g.,
- Create GPO:
- Link a new GPO to the
ComputersOU namedDeploy_Chrome.
- Link a new GPO to the
- Edit GPO:
- Navigate to
Computer Configuration > Policies > Software Settings > Software installation.
- Navigate to
- Right-click > New > Package.
- Browse to the UNC PATH (
\\DC01\Software\Chrome.msi). Do not use C:... - Select Assigned.
- Click OK.
Result: The next time the computer reboots, it will install Chrome before the login screen appears.
Task C: Disable “Server Manager” on Login (Optional)
If you RDP into the server often, this popup gets annoying.
- Navigate to:
Computer Configuration > Policies > Admin Templates > System > Server Manager - Enable: Do not display Server Manager automatically at logon.