Before any workstation joined the domain, I wanted four controls in place: a password policy, a short list of who’s allowed to be local admin, application control that blocks programs from user-writable folders, and audit logging that a SIEM can use later. All four are Group Policy, and three of them link to the Workstations OU.
Why these four
Each one closes a gap attackers rely on. Weak passwords make spraying and cracking cheap. Every extra local admin is another account that can dump credentials from memory. Most commodity malware runs from places a normal user can write to, like Downloads and Temp. And without audit events, there’s nothing to detect any of it with. Microsoft’s own Windows security baseline expects Kerberos authentication auditing on domain controllers for both success and failure, and maps it to the CIS benchmark [1].
The password policy lives in the Default Domain Policy
I first built a separate Domain-Password-Policy GPO and linked it above the default one. It didn’t take effect. That’s by design: domain controllers read account policies (password, lockout and Kerberos) from the Default Domain Policy, so that’s where domain password settings go [2]. This is one of the few times editing the Default Domain Policy is the right move.
If different groups need different rules, for example stricter settings for admin accounts, that’s what fine-grained password policies are for [3].
To check what’s actually in force:
gpupdate /force
Get-ADDefaultDomainPasswordPolicy
Restricting local admin
The Restrict-Local-Admin GPO uses Group Policy Preferences: Computer Configuration > Preferences > Control Panel Settings > Local Users and Groups, a Local Group item for the built-in Administrators group with the Update action, and only the intended admin accounts or groups as members. It’s linked to the Workstations OU.
Update adds the members you list. It doesn’t clean out accounts that were already in the group unless you tell it to, so check the group on a workstation after the first refresh:
net localgroup administrators
Application control with AppLocker
The AppLocker-Baseline GPO is also linked to Workstations. The order matters:
- Under Executable Rules, create the default rules first. They allow Windows and Program Files, and let local administrators run anything. Without them, AppLocker would block core Windows processes [4].
- Add Deny rules with a path condition for Everyone:
%OSDRIVE%\Users\*\Downloads\*%OSDRIVE%\Users\*\AppData\Local\Temp\*
- Set the collection to Enforce rules, not Audit only.
AppLocker is enforced by the Application Identity service. If that service isn’t running, the policy isn’t enforced [5], so confirm it on the workstation:
Get-Service AppIDSvc
One side effect worth knowing: this also blocks installers you download yourself. Moving a file out of Downloads to a folder like C:\<tools-folder> before running it is the expected workflow, not a bug.
Audit policy for detection
The Audit-Policy GPO is linked at the domain root and uses Advanced Audit Policy Configuration [6]:
| Subcategory | Setting | What it gives you |
|---|---|---|
| Audit Logon | Success and Failure | Who signed in where, and failed attempts |
| Audit Kerberos Authentication Service | Success and Failure | TGT requests and failures (events 4768, 4771, 4772) |
| Audit File System | Failure | Denied access to audited files |
These are the events a SIEM needs for password spraying and brute force detections.
Joining the domain
The first domain join failed partway through with “RPC server is unavailable”. Joining a computer needs more than DNS, Kerberos, LDAP and SMB: it also needs the RPC endpoint mapper on TCP 135 and the dynamic RPC range, TCP 49152 to 65535 [7]. The workstation VLAN’s firewall rules only allowed the core ports. After adding the RPC rules, leaving the domain, resetting the computer account in Active Directory Users and Computers, and joining again, it worked.
To confirm everything applied, sign in with a domain account and run:
gpresult /r
All three workstation GPOs should be listed under applied Group Policy objects.
References
- Windows security baseline (Azure Policy guest configuration)
- Changes are not applied when you change the password policy
- Configure fine grained password policies for Active Directory Domain Services
- Create AppLocker default rules
- AppLocker processes and interactions
- Advanced Audit Policy Configuration
- Service overview and network port requirements for Windows
Comment section
Sorry babes, you have to sign into Github to comment. Feel free to let me know what's on your mind!