A beginner-friendly guide to configuring and testing the four key security control types using Windows Server 2019 and PowerShell.
Environment: PC10 VM, Domain: Structureality, User: Jaime (LocalAdmin)
- Preventive Control - File Share Permissions
- Detective Control - Object Access Auditing
- Directive Control - Login Warning Banner
- Corrective Control - File Integrity and Auto Restore
- Comparison Table
Preventive — Stops unwanted actions before they occur
Detective — Records/logs events for later review
Directive — Guides/instructs users toward compliant behavior
Corrective — Detects issues and actively restores secure state
- Security is defense-in-depth — use multiple control types together
- Always test after configuration to verify effectiveness
- Tailor controls to your organization's risk profile, policy, and compliance requirements
- In production use Group Policy for domain-wide settings
- Centralize logs (SIEM) for detective controls
- Schedule/automate corrective scripts
- Document changes and report deviations
- NIST
- CIS
- Common security control frameworks
✅ Your own lab environment · ✅ Authorized company systems · ✅ With written permission
❌ Unauthorized systems · ❌ Production without change management approval
Found a mistake or want to add a control? Open a PR!
MIT License — feel free to use and share.