CertifyDeck
All cheat sheets
AZ-802 · CHEAT SHEET

Microsoft Certified: Windows Server Administrator Associate

Key concepts grouped by official exam weight.

Download as PDF (free, no sign-up)

1. Deploy and manage AD DS

20–25%

Deploy and manage AD DS domain controllers

  • A domain controller is deployed in two steps: install the AD DS role (Install-WindowsFeature) and promote it with the wizard or the ADDSDeployment cmdlets (Install-ADDSForest, Install-ADDSDomain, Install-ADDSDomainController and their Test cmdlets). For branches with slow WAN links use install from media (IFM); the database and SYSVOL must not be placed on ReFS.
  • Domain controllers on Azure VMs keep NTDS.dit, logs and SYSVOL on a data disk with host caching set to None, use a static private IP address with no public IP, Azure Bastion for administration and availability zones. Shut them down from the guest OS, not from the portal, and create an AD DS site for the Azure subnets with a site link to on-premises.
  • An RODC holds a read-only copy of the directory, replicates in one direction only and can't be the first DC in a forest or domain. You can stage its account with Add-ADDSReadOnlyDomainControllerAccount (the site must exist and adprep /rodcprep must have run) and later attach the server with Install-ADDSDomainController -UseExistingAccount, delegating its local administration.
  • An RODC's Password Replication Policy (PRP) has allowed and denied lists; deny wins and accounts on neither list are never cached. Manage it with Add-ADDomainControllerPasswordReplicationPolicy, prepopulate passwords with Sync-ADObject -PasswordOnly and audit it with Get-ADDomainControllerPasswordReplicationPolicyUsage. If an RODC is stolen, delete its account and reset the passwords it had cached.
  • Each forest has one schema master and one domain naming master, and each domain one RID master, one infrastructure master and one PDC emulator; an RODC can hold none of them. Transfer roles with the snap-ins, ntdsutil or Move-ADDirectoryServerOperationMasterRole, and seize them only with ntdsutil or -Force; the former holder must not return without a rebuild and metadata cleanup.

Configure and manage multi-site, multi-domain, and multi-forest environments

  • Forest trusts are transitive across all domains of the two forests but don't extend to a third forest; external and shortcut trusts are nontransitive, and realm trusts connect to non-AD DS Kerberos v5 realms. A forest trust needs DNS name resolution between the forests. Selective authentication requires the Allowed to Authenticate permission, and SID filtering (/quarantine) blocks foreign SIDs.
  • A site groups well-connected subnets; subnet objects map computers to sites and site links define cost and schedule between sites. Site links are transitive by default (Bridge all site links); in a network that isn't fully routed you turn that off and create site link bridges. Move a DC with Move-ADDirectoryServer, and sites without a global catalog can use universal group membership caching.
  • The KCC creates inbound connection objects: a bidirectional ring within a site and spanning trees between sites through bridgehead servers; it doesn't change manual or modified connections. Replication depends on the network (RPC through port 135), DNS, authentication and time. Diagnose it with the Directory Service event log, repadmin /showrepl, Get-ADReplicationFailure and Get-ADReplicationPartnerMetadata.

Create and manage AD DS security principals

  • Security groups are used in DACLs, while distribution groups are only for email. Global groups contain accounts from their own domain, universal groups contain accounts and groups from any domain in the forest, and domain local groups also accept accounts from trusted domains and forests but grant permissions only in their domain. Create them with New-ADUser and New-ADGroup, in bulk with Import-Csv.
  • Group scope decides who can be a member and where the group grants permissions: a Global group only contains accounts from its own domain, a Universal group accepts accounts and groups from any domain in the same forest, and a Domain Local group also accepts accounts from other forests but grants permissions only in its own domain. Scope conversions have conditions, such as a Global group not being a member of another Global group.
  • An sMSA serves a single server, a gMSA shares one identity across several servers with a password computed by the domain controller (it needs a KDS root key), and a Windows Server 2025 dMSA binds authentication to the machine identity and can supersede a traditional account, whose password is then blocked. Virtual accounts use the computer account to access the network.

Manage Windows Server by using domain-based Group Policies

  • GPOs are processed in the order local, site, domain and OU (parent to child), and the closest container wins conflicts. Enforced is a link property that prevails over Block Inheritance; security filtering and WMI filters decide who gets the whole GPO, and loopback processing (Merge or Replace) applies user settings based on the computer.
  • Group Policy preferences deploy settings that users can change, but they're reapplied at every refresh unless Apply once and do not reapply is selected; when they conflict with a policy setting, the policy wins. Item-level targeting filters each item by group, site, portable computer, WMI query and other criteria that you combine with AND or OR.

2. Manage Windows Server instances and workloads in a hybrid environment

10–15%

Configure remote management for Windows Server instances in a hybrid environment

  • Windows Admin Center has two experiences installed on separate systems: Administration Mode and Virtualization Mode. In the Azure portal it's installed as an extension on an Azure VM or an Arc-enabled server (no inbound ports, through a reverse proxy) and manages only that machine; access comes from the Windows Admin Center Administrator Login role. To manage several VMs, you deploy a gateway on an Azure VM.
  • The second-hop problem happens because the remote session's credentials aren't passed on to a third server; resource-based Kerberos constrained delegation is configured on the resource server, stores no credentials and crosses domains, while CredSSP caches them. JEA combines role capability files (.psrc) and session configuration files (.pssc) that you register with Register-PSSessionConfiguration.
  • On Windows Server 2025, OpenSSH is installed, but you must enable the sshd service. Settings live in %programdata%\ssh\sshd_config and need a service restart; administrators' keys go in administrators_authorized_keys. Arc-enabled servers accept SSH without a public IP or open ports once Microsoft.HybridConnectivity is registered, by using az ssh arc.
  • For RDP to Azure VMs without a public IP, use Azure Bastion, which is deployed in the virtual network and connects over TLS. Defender for Cloud just-in-time access keeps management ports closed and opens them only for approved requests for a limited time. On Arc-enabled servers, az ssh arc --rdp opens RDP over SSH, and Network Level Authentication protects the session.

Manage Windows Server instances and workloads by using Azure services in a hybrid environment

  • Azure Arc represents servers outside Azure as Azure resources once the Azure Connected Machine agent is installed; the agent can't be installed on Azure VMs. At scale you onboard with azcmagent connect and a service principal that has the Azure Connected Machine Onboarding role, after registering the required resource providers. The agent sends heartbeats: without them the status becomes Disconnected, and an expired machine must be reconnected.
  • Azure Machine Configuration audits or configures operating system settings as code, assigned through Azure Policy or manually. Arc-enabled servers already include its agent, while Azure VMs need the extension and a system-assigned managed identity. Each assignment uses an enforcement mode: Audit, Apply and Monitor, or Apply and Autocorrect, which corrects drift.
  • Arc-enabled servers support the same VM extensions as Azure, such as the Azure Monitor Agent, the Dependency agent for VM insights or Custom Script, and they're managed from Azure. With azcmagent you set local allow or block lists, monitor mode, or disable the extension manager; nobody can override those lists from Azure, and they don't remove extensions that are already installed.
  • Azure Update Manager manages updates for Azure VMs and Arc-enabled servers with no dependency on Log Analytics or Azure Automation. Periodic or on-demand assessment finds missing updates, and recurring schedules are saved as maintenance configurations, which machines join statically or through dynamic scopes. Azure VMs need Customer Managed Schedules patch orchestration.
  • Azure Automation supports PowerShell, PowerShell Workflow, Python and graphical runbooks; graphical and textual runbooks can't be converted into each other. A new or imported runbook is a Draft and must be published before it runs; you start it from the portal, PowerShell, webhooks or schedules. To reach on-premises resources it runs on a Hybrid Runbook Worker group, not on a specific worker.

3. Manage VMs

10–15%

Manage Hyper-V and guest VM

  • Enhanced Session Mode in VMConnect uses RDP to connect to Windows VMs, giving resizable windows and sharing of the clipboard, printers, audio, drives and USB devices. It requires Remote Desktop enabled in the guest and the host to allow enhanced mode (Set-VMHost -EnableEnhancedSessionMode). By default only the clipboard, printers and audio playback are shared.
  • PowerShell Direct runs PowerShell in a Windows VM from its Hyper-V host regardless of networking or remote management settings, by using Enter-PSSession, Invoke-Command or New-PSSession with -VMName. The VM must run locally and be running, you must be a Hyper-V administrator and supply guest credentials. Copy-Item -ToSession copies files into the guest through a persistent session.
  • Nested virtualization runs Hyper-V inside a VM by exposing processor virtualization extensions with Set-VMProcessor -ExposeVirtualizationExtensions $true while the VM is off. Networking uses MAC address spoofing on the first level or NAT with an internal switch where spoofing isn't possible. While Hyper-V runs in the VM, its memory doesn't fluctuate even with Dynamic Memory.
  • With Dynamic Memory, startup memory is what the VM uses to boot (and during OS install or upgrade), minimum memory lets Hyper-V reclaim memory after startup and can't exceed startup memory, and maximum memory is the ceiling. The buffer adds a percentage above demand and weight decides distribution under shortage. While running you can raise maximum and lower minimum.
  • Hyper-V integration services (heartbeat, guest shutdown, time synchronization, KVP data exchange, VSS, Guest Service Interface and PowerShell Direct) let the guest communicate with the host. Each service must be enabled on both host and guest; you control them with Enable-VMIntegrationService and Disable-VMIntegrationService. On Windows guests all are on by default except Guest Service Interface.

Manage Windows Server VMs in Azure

  • An Azure VM has an OS disk, managed data disks for applications and data, and usually a temporary disk (drive D on Windows) whose data can be lost when the VM is stopped. Data disks can be expanded without downtime, the OS disk requires deallocation, no disk can be shrunk, and afterwards you extend the volume inside Windows.
  • To scale up you resize the VM, which restarts it if it's running; if the size isn't on the current cluster you must deallocate it, or every VM in its availability set. To scale out you use Virtual Machine Scale Sets with autoscale; Flexible orchestration is recommended and the mode can't be changed after creation.
  • An availability set spreads VMs across fault and update domains, but it's still exposed to datacenter failures and doesn't protect against OS failures. Availability zones are physically separate locations in a region and offer more resiliency. A VM can be added to an availability set only when it's created.
  • Just-in-time access in Defender for Servers Plan 2 adds deny rules for management ports to the NSG or Azure Firewall and opens them only for the approved IP and time; it requires an NSG or a firewall. Azure Bastion provides RDP and SSH over TLS on port 443 to VMs that have only private IP addresses.
  • Network security group rules are evaluated by priority, from the lowest number to the highest, and stop at the first match; NSGs are stateful and rule changes affect only new connections. Each network interface has one primary IP configuration and can have secondary ones; the public IP address is never configured inside Windows.

4. Implement and manage an on-premises and hybrid networking infrastructure

10–15%

Implement on-premises and hybrid name resolution

  • Active Directory-integrated zones exist only on domain controllers that run DNS, support secure dynamic updates and let every domain controller process changes. Their replication scope can be the forest, the domain, legacy or a custom partition; secondary zones can't be stored in AD DS.
  • A primary zone holds the writable copy; a secondary zone is a read-only copy obtained by zone transfer (full AXFR or incremental IXFR), and a stub zone stores only the authoritative servers. Records (A, AAAA, CNAME, MX, PTR, SRV, TXT) are created with the DnsServer module; to change a record's name or type you remove it and create it again.
  • Server-level forwarders receive the queries the server can't answer from its zones or cache; conditional forwarders send a specific namespace to designated servers and are evaluated first. UseRootHint controls whether root hints are used as fallback, and an AD DS-integrated conditional forwarder can be created only on a writable domain controller.
  • Azure DNS Private Resolver resolves names between virtual networks and on-premises without custom DNS servers. The inbound endpoint receives on-premises queries sent by a conditional forwarder to its IP; the outbound endpoint forwards from Azure to on-premises according to rulesets linked to virtual networks, where the longest suffix wins.
  • DNS policies use client subnets, zone scopes and recursion scopes to answer by location, time of day, interface or FQDN: geo-location traffic management, split-brain DNS, filtering and blocking. There are query resolution, recursion and zone transfer policies; they're stored on each server and don't replicate through AD DS.

Manage IP addressing in on-premises and hybrid scenarios

  • To deploy DHCP you install the role, authorize the server in AD DS (an unauthorized server doesn't lease addresses) and create a scope. DHCP failover shares IPv4 scopes and leases between two servers, in load balance or hot standby mode, and scope changes must be replicated manually.
  • In Azure, the virtual network delivers IP and DNS settings through DHCP: after changing its DNS servers you renew the lease (ipconfig /renew) for them to apply. Connected networks can't overlap. On-premises, when another subnet fails, check the relay agent, authorization, free addresses and static IPs that aren't excluded.
  • A DHCP scope is a subnet's address range with its mask, lease duration, options and reservations; each subnet supports one scope with a single continuous range, and exclusion ranges protect static addresses. There are single scopes, multicast scopes (MADCAP) and superscopes; server-level options apply to all clients.
  • A DHCP reservation always gives the same scope address to a client identified by its MAC address (client ID) and is created with Add-DhcpServerv4Reservation, also from an existing lease. In a failover-enabled scope, you replicate the reservation manually with Invoke-DhcpServerv4FailoverReplication. In Azure you can't reserve private IP addresses for future VMs.
  • DHCP failover replicates IPv4 scopes and leases between two servers. Load balance mode shares clients between both servers; hot standby mode keeps one server in reserve that leases only when the active server is down. Scope changes are replicated manually (Invoke-DhcpServerv4FailoverReplication), and clients must reach both servers, for example through two relay agents.

5. Manage storage and file services

15–20%

Configure and manage Azure Files

  • Classic file shares are created in a storage account whose kind and SKU set the media tier (SSD or HDD), billing model and redundancy; SSD supports only LRS and ZRS. A share cannot change media tier in place: you create a new one and copy the data. Protection relies on soft delete, read-only share snapshots and Azure Backup.
  • Identity-based access to Azure Files has two layers: Azure RBAC roles at share level (or a default permission for all authenticated identities) and Windows ACLs on folders and files; the most restrictive wins. Accounts not synced to Microsoft Entra ID use the default permission, and ACLs are edited with icacls or File Explorer when the identity source is AD DS.
  • Azure File Sync turns Windows Server into a cache of an Azure file share. You deploy a Storage Sync Service, install the agent, register the server (with one service only), and create a sync group with one cloud endpoint and server endpoints on NTFS volumes. Cloud tiering uses volume free space and date policies.
  • Azure File Sync sends metrics to Azure Monitor (such as Server online status, Files not syncing and Sync session result) that you use in alert rules with action groups. The Storage Sync Service shows server and endpoint health. On the server, the Telemetry event log (Microsoft\FileSync\Agent) and the AFS Performance Monitor counters show sync and cloud tiering activity.
  • To migrate DFS-R to Azure File Sync you create a sync group, start with the server that has the full data set (without cloud tiering), let everything sync, disable DFS-R and then create server endpoints on the other servers. When both technologies coexist, cloud tiering must be disabled on volumes with DFS-R replicated folders.

Configure and manage Windows Server file shares

  • SMB share permissions are managed with the SmbShare module: New-SmbShare with FullAccess, ChangeAccess, ReadAccess or NoAccess, then Grant, Block, Revoke and Unblock-SmbShareAccess. Access-based enumeration (FolderEnumerationMode AccessBased) hides what users cannot open and is off by default; in DFS it only hides folders and does not block access.
  • FSRM is a Windows Server role service for NTFS volumes that provides quotas (hard or soft, with templates and auto apply quotas for subfolders), file screening (active or passive, with exceptions), file classification, file management tasks such as file expiration, and storage reports. You manage it with its console or with PowerShell.
  • DFS Namespaces groups shared folders from several servers under one logical path. A stand-alone namespace keeps its data in the registry and gains availability through a failover cluster; a domain-based namespace stores it in AD DS and uses several namespace servers, and Windows Server 2008 mode supports access-based enumeration. DFS Replication syncs folders by using RDC.
  • SMB over QUIC replaces the TCP 445 transport with a TLS 1.3 tunnel over UDP 443 so that clients can reach edge file servers from the internet without a VPN. It requires a server authentication certificate with DNS names in the SAN, mapped with New-SmbServerCertificateMapping. Clients try TCP first; the KDC Proxy enables Kerberos, and a renewed certificate must be mapped again.
  • SMB signing protects integrity and SMB Encryption protects data in transit, per share (Set-SmbShare -EncryptData), per server (Set-SmbServerConfiguration) or when mapping drives (-RequirePrivacy). Windows Server 2025 requires outbound signing. By default only SMB 3.x clients can access encrypted shares, and SMB 1.0 should be removed because it allows connection downgrades.

Configure Windows Server storage

  • A new disk is initialized (GPT by default) before you create volumes. GPT supports more than four partitions and larger disks than MBR, and changing the style requires a disk without partitions (Clear-Disk and Initialize-Disk). An NTFS or ReFS volume extends into adjacent space on the same disk with Resize-Partition; only NTFS or raw volumes can be shrunk.
  • Storage Spaces groups blank physical disks into a storage pool and creates virtual disks with simple, mirror (two-way or three-way) or parity resiliency and thin or fixed provisioning. HBAs must be in non-RAID mode. Mirror is the general choice, parity fits sequential workloads and simple fits temporary data. You then create NTFS or ReFS volumes on the virtual disks.
  • Storage Spaces Direct pools the internal drives of a failover cluster into software-defined storage, with cache on the fastest drives and ReFS volumes on Cluster Shared Volumes. You validate with Test-Cluster, enable it with Enable-ClusterStorageSpacesDirect and create volumes with New-Volume. Deployments are hyperconverged or converged, with a Scale-Out File Server.
  • Storage Replica replicates volumes at block level over SMB 3, in synchronous mode (zero data loss, low-latency network) or asynchronous mode (long distances). It supports stretch clusters with automatic failover, and cluster-to-cluster or server-to-server with manual failover. It needs GPT disks, identically sized data volumes and a dedicated log volume; it doesn't replace backups.
  • Data Deduplication uses a post-processing model: data is written unoptimized and the Optimization job chunks it and stores each unique chunk in the chunk store. It is enabled per volume with a Usage Type: Default (general file servers), Hyper-V (VDI) or Backup (virtualized backup apps). DDPEval.exe estimates savings and the Unoptimization job undoes it.

6. Secure Windows Server infrastructure

10–15%

Secure Windows Server operating system

  • Exploit protection applies mitigations such as DEP, Mandatory ASLR or CFG system-wide and others, such as ACG or Block remote images, only per app; program settings override system settings. You configure it in Windows Security or with Set-ProcessMitigation, export it to XML and distribute it with the common-settings Group Policy setting, which overrides local changes.
  • App Control for Business lets only the code that its policy allows run, including scripts and MSI installers. In the multiple policy format, two base policies combine as an intersection and a base with its supplemental policies as a union. Audit mode logs what would be blocked in CodeIntegrity Operational. Group Policy deploys only the single-policy format; CiTool adds .cip files.
  • Credential Guard uses virtualization-based security to isolate NTLM hashes, Kerberos TGTs and domain credentials against pass-the-hash and pass-the-ticket attacks. On Windows Server 2025 it is enabled by default, without UEFI lock, on member servers that meet the requirements, but not on domain controllers. It blocks Kerberos DES and unconstrained delegation, and VMs must be generation 2.
  • Microsoft Defender SmartScreen protects against phishing or malware sites and files downloaded from the internet through reputation checks; it doesn't cover files on internal network shares. By default users can bypass warnings, so Microsoft recommends enabling Configure Windows Defender SmartScreen with Warn and prevent bypass through Group Policy, plus the Microsoft Edge settings that prevent bypassing.
  • Microsoft security baselines ship as GPO backups in the Security Compliance Toolkit; Import-GPO loads them into GPOs in your domain and LGPO.exe manages the local policy of non-domain servers. Policy Analyzer compares sets of GPOs and detects conflicts. Domain GPOs override local policy, and security or WMI filtering decides whether the whole GPO applies.

Secure AD DS

  • A domain has one default password and lockout policy; to give some users a different one you use fine-grained password policies (PSOs), which apply only to users and global security groups, never to an OU. When several PSOs apply, the one linked directly to the user wins, otherwise the lowest precedence value. You manage them with Active Directory Administrative Center or PowerShell.
  • Microsoft Entra Password Protection applies the Microsoft Entra ID global and custom banned password lists to on-premises AD DS. The proxy service, on a member server, forwards policy downloads; the DC agent validates changes and must be on every writable DC (RODCs don't need it). DCs never reach the internet, and the feature supplements, not replaces, the AD DS password policy.
  • Protected Users is a global security group that applies nonconfigurable protections against credential theft: no NTLM, Kerberos with AES only, no constrained or unconstrained delegation, TGTs not renewable beyond their initial lifetime, and no offline sign-in. Service and computer accounts must never be added, and highly privileged accounts should be tested before they join.
  • Domain controllers are secured separately and more strictly: dedicated racks, TPM and BitLocker on all volumes (with local storage), virtual DCs on their own hosts and RODCs in branches without a secure room. Microsoft recommends Server Core, remote administration from secure workstations, separate patch management, no web browsers and no internet access from DCs.
  • Access to domain controllers is restricted with GPOs linked to the Domain Controllers OU that combine user rights and Windows Firewall rules, for example RDP only from jump servers; a policy refresh reverts manual changes. Administration is done remotely from secure workstations, and the built-in Administrator account is limited to local sign-in on DCs.

7. Monitor and troubleshoot Windows Server environments

15–20%

Monitor by using Windows Server tools and Azure services

  • Performance Monitor is a built-in MMC snap-in that shows real-time counters, data collector sets and reports, locally or remotely. Every counter follows the object, instance and counter form. For diagnosis you check disk latency, available memory against process working sets, and CPU, and a longer sample interval avoids summarized graphs in multi-day captures.
  • A data collector set stores performance counters, traces or alerts over a period. You create it in Performance Monitor or with logman: create counter logs counters (-c, -si, -o, -f bincirc, -s for a remote computer) and create alert evaluates thresholds with -th and can start another set with -rdcs. Sets are exported and imported as XML files.
  • Windows Admin Center monitors a server with Overview (current CPU, memory and network), Events, Performance Monitor and System Insights. Its Azure Monitor tool connects the server to a Log Analytics workspace and enables performance counters; email alerts are created in the Azure portal as alert rules with an action group. In VM insights, on-premises servers use the Performance and Maps tabs.
  • System Insights brings local predictive analytics to Windows Server with four default capabilities: CPU, networking, total storage and per-volume consumption forecasting. It analyzes daily data without cloud connectivity and returns Ok, Warning, Critical, Error or None statuses. You manage it with Windows Admin Center or PowerShell, with schedules and remediation scripts, and it publishes results to the event log.
  • wevtutil queries, exports (epl), clears with backup (cl /bu) and configures logs (sl): /rt:true keeps existing events when the log is full and /ab:true, which requires /rt:true, backs it up automatically. wecutil manages Windows Event Collector subscriptions: qc enables ForwardedEvents and delayed start of the service, and ds keeps events already received.

Troubleshoot Windows Server issues

  • For an RDP failure, check with qwinsta that the rdp-tcp listener is in Listen state and, from the same network, run Test-NetConnection -Port 3389: if TcpTestSucceeded is False check the port, DNS, firewall rules and NSG (mandatory with a Standard public IP); if True, check the machine, for example that the TermService PID owns port 3389.
  • On the client, check ipconfig /all, ping the DNS server and test with nslookup, which doesn't use the client cache; cached negative answers are removed with ipconfig /flushdns. On the server, a timeout points to a stopped DNS service and Server failure to a paused zone; Clear-DnsServerCache clears the cache served to clients and dnscmd /zonerefresh forces a transfer to a secondary zone.
  • If an update fails because of corruption, run DISM /Online /Cleanup-Image /RestoreHealth (without Windows Update access, with /Source pointing to an installation of the same version and /LimitAccess), then sfc /scannow and Windows Update again; results go to CBS.log. In Azure Update Manager, periodic assessment of Arc servers requires the subscription to be registered to Microsoft.Compute.
  • Domain members sync time with the domain hierarchy (NT5DS) and the PDC emulator of the forest root domain is configured with an external source. w32tm /config /syncfromflags:domhier /update returns a client to the hierarchy, /query /source and /query /configuration show the source and effective settings, and Group Policy overrides the registry.
  • For sustained high CPU, identify the process with Task Manager, Resource Monitor or Process Explorer and collect a Performance Monitor log, a few minutes of WPR and two ProcDump dumps. A shared svchost is split with sc config service type= own and reverted with type= share. For high Lsass.exe on a domain controller, run the Active Directory Diagnostics data collector set.

Troubleshoot Active Directory

  • Active Directory Recycle Bin is not enabled by default, is enabled with Enable-ADOptionalFeature or Active Directory Administrative Center, and is irreversible. It preserves all attributes, so users regain their groups, but only for objects deleted after it was enabled. Parents must be restored before children; Restore-ADObject without TargetPath uses lastKnownParent.
  • A system state restore in DSRM, for example with wbadmin start systemstaterecovery, is nonauthoritative: the DC then receives changes from its partners. To recover deleted objects without the Recycle Bin, after the restore you run ntdsutil authoritative restore (restore object or restore subtree), restart in normal mode and replicate with repadmin /syncall; the DSRM password is reset with ntdsutil set dsrm password.
  • DFSR-replicated SYSVOL is restored authoritatively with wbadmin start systemstaterecovery -authsysvol or by setting msDFSR-Options=1 on SYSVOL Subscription; after marking one DC authoritative, preferably the PDC emulator, the others are synchronized non-authoritatively with msDFSR-Enabled and DFSRDIAG POLLAD. To repair a single DC, make it non-authoritative; DFS Management can't be used for SYSVOL.
  • AD replication errors are diagnosed with the Directory Service log and repadmin /showrepl: error 5 points to an authentication failure, 8524 to a DNS failure and Event ID 2042 to an exceeded tombstone lifetime. For 2042 you identify lingering objects with repadmin /removelingeringobjects in /advisory_mode, remove them, and only then resume replication.
  • DCDiag analyzes domain controller health: /e tests the whole enterprise, /test:DNS must be requested explicitly and /fix only fixes SPNs in the MachineAccount test. Advertising, KnowsOfRoleHolders, NetLogons and SysVolCheck check DC location, FSMO role knowledge, share access and SYSVOL. A DC that will not return is removed by cleaning up its metadata with Ntdsutil.