Identity threat detection with Defender for Identity · Prepare
Prepare servers and auditing for Defender for Identity
Auditing, accounts, capacity and connectivity ready on every identity server.
- Duration
- 2 to 3 weeks
- Effort
- About 4 to 6 person-days
- Complexity
- Medium
- Beyond E5
- Nothing beyond Microsoft 365 E5
On this page
Overview
The sensor parses Windows event logs from domain controllers and AD FS, AD CS and Microsoft Entra Connect servers, so the right events must be audited. For sensor v3.x, Microsoft recommends automatic Windows auditing, which configures the supported settings on eligible servers. For v2.x, auditing is configured manually or with PowerShell, and the sensor needs a Directory Service Account and enough capacity, measured with the sizing tool.
Technically, you turn on automatic Windows auditing for v3.x sensors, or configure advanced audit policies, NTLM auditing and domain object auditing for v2.x; prepare the AD CS audit filter; create a Directory Service Account and action account where v2.x is used; run the sizing tool on v2.x domain controllers; and confirm each server can reach the service.
You'll end up with: Every identity server audited correctly, accounts ready for v2.x sensors, capacity confirmed, and connectivity tested.
If you skip it: Without preparation, sensors install but detections miss events, health issues pile up, and the team loses confidence in the tool before it's used.
Before you start
The path to this playbook
- Plan Defender for Identity
- Prepare servers and auditing for Defender for Identity (you are here)
- Plan Defender for Identity: Every domain controller and identity server listed, a sensor version chosen for each, and owners agreed.
- Have the server inventory and versions
How to do it
Preparation follows the inventory, sensor versions and account decisions from Plan Defender for Identity.
Test to sign-off
4 phases · 1 decisionConfigure auditing1 week
Turn on automatic Windows auditing for v3.x servers, and configure auditing manually or with PowerShell for v2.x servers.
Move on when Every server has the required audit settings, checked against Microsoft's list.
Key decisions for this phase (1)
Automatic or manual auditing for v3.x?
Recommended default: Automatic Windows auditing
Automatic Windows auditing configures the supported settings on eligible servers onboarded to Defender for Endpoint, and is Microsoft's recommended option. Manual configuration gives full control but has to be kept up to date by Group Policy.
How to do it
Automatic auditing configures directory services advanced auditing, NTLM auditing, domain object auditing and the audit policies for AD CS and Entra Connect. Automatic sensor activation and automatic auditing have separate controls, and need an active licence that includes Defender for Identity.
Watch out for (1)
If you: Leave a Group Policy that overrides the audit settings
What tends to happen: Required events stop being logged, and detections miss activity without warning
A better approach:Check which Group Policies set audit policy on domain controllers, and align them with the required settings
Prepare AD CS and federation serversA few days
Configure the certificate authority audit filter on AD CS servers, and the extra steps for AD FS and Entra Connect.
Move on when Each non-domain-controller identity server has its extra settings in place.
How to do it
Automatic auditing changes an existing AD CS audit filter but doesn't create one, so the certificate authority must already have one. The change applies after the certificate services restart; until then, Defender for Identity raises a health issue.
Watch out for (1)
If you: Forget to restart certificate services after the audit change
What tends to happen: A health issue appears and AD CS events are missing
A better approach:Schedule the restart in the server's change window
Prepare accounts and capacity for v2.x1 week
For servers using v2.x, create the Directory Service Account and action account, and run the sizing tool on domain controllers.
Move on when The sizing tool shows enough capacity, or the server has a plan to add it.
How to do it
A v2.x sensor on an AD FS, AD CS or Entra Connect server can't use the local service account to connect to the domain, so it needs a Directory Service Account. The sizing tool is for v2.x only and measures domain controllers; AD FS, AD CS and Entra Connect servers need no sizing. For virtual domain controllers, Microsoft says the configured and reserved memory should match.
Watch out for (1)
If you: Use a regular user account as the Directory Service Account
What tends to happen: The password expires or is changed, and every v2.x sensor loses directory access
A better approach:Use a group managed service account where possible
Test connectivityA few days
Confirm each server can reach the Defender for Identity service, directly or through a proxy.
Move on when Every server passes the connectivity test.
Keep server owners informed of each audit change and restart.
How you'll know it's working
3 measures
Capture a baseline before you start, or you won't be able to show the change.
| Measure | Where you see it | Good direction |
|---|---|---|
| Identity servers with the required auditing | Health issues page and audit checks | Up |
| v2.x domain controllers with confirmed capacity | Sizing tool results | Up |
| Servers passing the connectivity test | Readiness checklist | Up |
Take it with you
plan, decisions, gate checks, 1 template
Plan outline: phases and when to move on
- Configure auditing (1 week). Move on when: Every server has the required audit settings, checked against Microsoft's list.
- Prepare AD CS and federation servers (A few days). Move on when: Each non-domain-controller identity server has its extra settings in place.
- Prepare accounts and capacity for v2.x (1 week). Move on when: The sizing tool shows enough capacity, or the server has a plan to add it.
- Test connectivity (A few days). Move on when: Every server passes the connectivity test.
Decisions to record, with the recommended answer
| Decision | Recommended default | Our choice |
|---|---|---|
| Automatic or manual auditing for v3.x? | Automatic Windows auditing |
Gate checks: questions to answer before each phase ends
Before leaving Configure auditing
- Do domain controllers log the required events?
Before leaving Prepare AD CS and federation servers
- Has certificate services restarted since the audit change?
Before leaving Prepare accounts and capacity for v2.x
- Does the sizing tool show enough capacity on every v2.x domain controller?
Before leaving Test connectivity
- Did every server pass the connectivity test?
Readiness checklist per server
Server: [name]. Sensor: [version]. Auditing: [automatic / manual, checked date]. AD CS audit filter: [Y/N/n.a.]. Accounts: [local system / DSA and action account]. Capacity: [n.a. / confirmed]. Connectivity: [passed date].
Microsoft Learn
6 links
Plan
Contributor

Microsoft 365 architecture and governance · Protiviti
Compare notes or suggest an improvement
Changelog
Changelog (1 version)
| Version | Date | By | Change |
|---|---|---|---|
| 1 | Sev Derghazarian | First draft. |