Microsoft AZ-801: Windows Server Security and Hardening — Study Guide

Part of the Microsoft Windows Server Hybrid Administrator Associate AZ-801 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Hardening Windows Server is a layered exercise that prioritizes identity isolation, application control, exploit and malware mitigation, and strict network boundaries—enforced consistently with repeatable baselines. The objective is to prevent credential theft, reduce attack surface with default-deny controls, detect and contain malicious behavior, and verify effective configuration through reporting. The capabilities described below are native to modern Windows Server and integrate with management at scale through Group Policy, PowerShell, and Microsoft security services.

Identity and Credential Protection

Windows Defender Credential Guard uses virtualization-based security (VBS) to isolate secrets from the OS so that LSASS cannot be scraped by malware. VBS requirements include UEFI 2.3.1 with Secure Boot, hardware-assisted virtualization (Intel VT-x/AMD-V with SLAT), and TPM 2.0 (strongly recommended for key protection). For VMs, use Generation 2 with Secure Boot and a vTPM; VBS runs using the Windows hypervisor and does not require the Hyper-V role to be installed.

Enable Credential Guard via Group Policy: Computer Configuration > Administrative Templates > System > Device Guard > Turn On Virtualization Based Security. Set Virtualization Based Protection of Code Integrity to Enabled, choose Credential Guard Configuration as Enabled with Secure Boot (or with Secure Boot and DMA Protection where supported). Reboot is required. Verify in msinfo32: Virtualization-based security: Running; Credential Guard: On. Eventing appears under Microsoft-Windows-CodeIntegrity/Operational and DeviceGuard.

Local Security Authority (LSA) protection complements Credential Guard. Configure LSASS to run as a protected process (PPL) to block unsigned code injection even by administrators. Use Group Policy: Computer Configuration > Administrative Templates > System > Local Security Authority > Configure LSASS to run as a protected process. This sets RunAsPPL, forcing signed, trusted drivers only. Credential Guard isolates secrets in a VSM-secured LSAISO process; LSASS PPL hardens the LSASS process boundary. Enable both for defense-in-depth.

Privileged Access Workstations (PAW) operationalize credential isolation. Adopt a tiered administration model:

Application Control and Attack Surface Management

Windows Defender Application Control (WDAC) enforces a default-deny policy for code. Policy types include a single base policy (SiPolicy) and optional supplemental policies to extend allow rules without changing the base. Modern Windows Server supports multiple policies concurrently. WDAC governs both user-mode binaries/scripts and kernel-mode drivers. Trust can be defined by Microsoft signatures, WHQL, Windows Store, your enterprise code-signing certificate, file hash, publisher/file attributes, or a Managed Installer that stamps deployed code as trusted. Deploy in Audit mode first to collect events, then switch to Enforced to block. Author policies using the ConfigCI PowerShell module: New-CIPolicy -Level Publisher -FilePath .\Base.xml -UserPEs 1; Merge-CIPolicy for consolidation; Set-CIPolicyIdInfo to stamp policy IDs; ConvertFrom-CIPolicy to generate the signed .p7b; deploy to %SystemRoot%\System32\CodeIntegrity\SiPolicy.p7b or via Group Policy. WDAC can also restrict COM class usage and registration to prevent malicious COM abuse.

Exploit protection provides process mitigations globally and per-app. System-level mitigations include DEP, ASLR (force relocation, bottom-up randomization, high-entropy), CFG, SEHOP, and strict handle and image load policies. App-level overrides allow granular tuning, such as enabling/disabling Child Process Creation, Export Address Filtering, or Arbitrary Code Guard for a specific executable. Manage with the Windows Security app (App & browser control > Exploit protection) or PowerShell: Get-ProcessMitigation -System; Set-ProcessMitigation -System -Enable CFG; Set-ProcessMitigation -Name app.exe -Disable ChildProcess. Export/Import XML for scale: Export-ProcessMitigation and Import-ProcessMitigation. When a line-of-business app must spawn child processes, create a per-app override disabling that mitigation for the executable only.

Attack Surface Reduction (ASR) rules block malware techniques at the behavior layer. Configure per rule in Block, Audit, or Warn mode. Common rule IDs include:

Controlled folder access (CFA) thwarts ransomware by restricting untrusted processes from writing to protected folders. Defaults include user profile Documents, Pictures, Desktop, Favorites, and more; you can add custom paths (including data volumes hosting application shares). Allow specific line-of-business binaries to write via “allowed apps.” Manage using Set-MpPreference -EnableControlledFolderAccess Enabled|AuditMode; -ControlledFolderAccessProtectedFolders; -ControlledFolderAccessAllowedApplications. Monitor blocks in Windows Defender event logs and tune allowed apps based on evidence, not guesswork.

Endpoint Protection and Baselines

Windows Defender Antivirus on servers provides real-time protection and scheduled/on-demand scanning. Scan types include Quick, Full, and Custom; schedule definition, engine, and platform updates through Group Policy or WSUS. Use MpCmdRun.exe -Scan -ScanType 2 for Full, or PowerShell Start-MpScan -ScanType Quick. Configure exclusions (paths, processes, extensions) with Set-MpPreference -ExclusionPath/-ExclusionProcess/-ExclusionExtension, but minimize exclusions and prefer precise process-based entries; pair with ASR and WDAC to avoid compensating risks. Tamper Protection prevents unauthorized changes to Defender settings (registry and WMI) by malware or local admins; manage centrally via Microsoft Defender for Endpoint security settings management for servers. Enable cloud-delivered protection (MAPS) and automatic sample submission for rapid blocking of emerging threats; verify with Get-MpComputerStatus (AMServiceEnabled, AntispywareSignatureLastUpdated, IsTamperProtected, CloudProtectionEnabled).

Security baselines implement proven hardening at scale. Use the Microsoft Security Compliance Toolkit (MSCT) to download Windows Server baselines (GPO backups and documentation). Import baseline GPOs via Group Policy Management (right-click Group Policy Objects > Import Settings) or apply locally with LGPO.exe. Validate in a test OU first. Use Policy Analyzer (part of MSCT) to compare current GPOs and local policy to baseline, identify conflicts, and produce deviation reports. Document any intentional deviations with business justification and change control, and re-run comparisons after patch cycles to maintain drift awareness.

Network and Policy Enforcement

Windows Defender Firewall with Advanced Security is stateful and profile-aware. Enforce least privilege with inbound default-deny and explicit allows for necessary services, scoping by remote addresses, interfaces, and users/service SIDs. Use service-hardening rules where possible to bind traffic to the correct service, not just a port. Outbound rules should be defined for servers that initiate connections to constrained destinations, preventing lateral movement and unauthorized egress. Connection security rules add IPsec (authentication, integrity, and optionally encryption) to traffic; remember they don’t open ports—pair them with firewall rules. For strong, interoperable authentication across domains and workgroups, use computer certificate authentication. Configure IPsec exemptions when diagnostics like tracert must remain clear (WFAS > Properties > IPsec Settings > IPsec exemptions). Apply domain, private, and public profiles appropriately; server interfaces connected to untrusted segments should use the public profile. Enable remote management scenarios with targeted rule groups only (for example, COM+ Network Access (DCOM-In) and Remote Event Log Management for Computer Management over DCOM and event log access).

Understand how Local Security Policy and Group Policy interact. Local Security Policy (secpol.msc) is the starting layer, but domain GPOs override it following LSDOU processing: Local, Site, Domain, then OU (last-writer wins per setting), with some security settings merging (for example, user rights assignments aggregate “deny” and “allow” entries with precedence rules). Use Resultant Set of Policy (RSoP) via gpresult /r (or gpresult /h report.html) and the Group Policy Results Wizard to see the effective configuration, including which GPO and WMI filter applied. When troubleshooting security settings (Defender, firewall, WDAC staging, LSA protection), always confirm the applied GPO and its precedence chain, then gpupdate /force after changes.

Practical Problem Scenario

Contoso Ltd. is rolling out a new HR application on Windows Server 2022 that writes to a data share and spawns helper processes for reporting. Security leadership mandates ransomware resilience, prevention of credential theft, and default-deny execution on Tier 1 servers without disrupting the HR app.

  1. Establish the identity boundary with Credential Guard and LSA protection
  1. Enforce application allow-listing with WDAC in audit, then enforce
  1. Tune exploit mitigations per app
  1. Block common attack techniques with ASR rules and targeted exclusions
  1. Protect data paths with Controlled folder access
  1. Confirm antivirus posture and cloud protection
  1. Lock down the network plane
  1. Baseline and verify

This combination was chosen to isolate credentials (Credential Guard, LSA PPL), default-deny code execution (WDAC), block common attacker tradecraft (ASR, exploit protection), prevent data tampering (CFA), enforce malware detection (Defender AV with cloud), and close network gaps (firewall and IPsec), with baselines and reporting ensuring consistency and auditability.


All domains · Microsoft Defender for Cloud and Endpoint Security

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product