- Size a three-VM lab and set up an isolated Hyper-V network with internet access through NAT
- Create the corp.example.com forest on DC01 with Install-ADDSForest and verify functional levels and DNS
- Create least-privilege accounts and groups for administration, client push and SQL Server, and explain why the lab has no network access account
- Join CM01 and CL01 to the domain and check name resolution and clock offset before Configuration Manager setup
- Extend the Active Directory schema with extadsch.exe, create the System Management container with Full Control for the site server, and verify both
- Open only the firewall ports that the lab needs
Lesson 1 drew the map. This lesson builds everything the site depends on before Configuration Manager setup runs: virtual machines, a network, a domain, accounts, Active Directory preparation and firewall rules. The order matters. A site server that joins the domain after it is installed, or that changes its name, is not supported, so the foundations are laid first and checked before lesson 3 begins.
The duration of this lesson counts the active work only. The installations add unattended time: in the lab run on an SSD host, the Windows installation of DC01 took about 4 minutes and the AD DS role about 3 minutes; the first Windows updates add more, depending on the connection.
All names in this course are neutral examples: the domain corp.example.com (NetBIOS name CORP), the domain controller DC01, the site server CM01 and the client CL01. The domain example.com is reserved for documentation (RFC 2606). Outside a lab, Microsoft recommends a subdomain of a registered DNS name for a forest root domain.
Host and virtual machines
The lab runs on one Hyper-V host; any hypervisor with virtual TPM support works, but the network steps are Hyper-V specific.
The following sizes are a lab recommendation, not a Microsoft sizing. Learn's minimum for a lab of up to 100 clients is 2 to 4 cores, 8 to 12 GB of memory and 100 GB of disk for a combined site and database server. The lab goes above that, because SQL Server alone reserves at least 8 GB for a primary site database and the client has to meet the Windows 11 requirements.
| VM | Role | OS | vCPU | Memory | Disks |
|---|---|---|---|---|---|
| DC01 | Domain controller, DNS | Windows Server 2025 Standard (Desktop Experience) | 2 | 4 GB | 60 GB |
| CM01 | Site server, SQL Server, MP, DP | Windows Server 2025 Standard (Desktop Experience) | 4 | 16 GB, static | C: 100 GB, D: 200 GB |
| CL01 | Managed client | Windows 11 Enterprise, version 26H2 | 2 | 4 GB | 64 GB |
- Host: 8 cores, 32 GB RAM and about 400 GB of free SSD storage. The virtual disks themselves stay small; checkpoints take most of the space. In the lab run, one checkpoint per lesson on all three VMs took about 330 GB by lesson 6. The lab VMs used standard checkpoints, which also save the memory; the Hyper-V default, production checkpoints, does not. When the host drive was full, Hyper-V paused CM01 and CL01. Delete checkpoints that are no longer needed; Hyper-V merges them into the virtual disks.
- Generation 2 VMs for all three. A Windows 11 VM needs generation 2, Secure Boot, a virtual TPM, two or more virtual processors, 4 GB of memory and 64 GB of disk.
- Static memory for CM01. With dynamic memory, Hyper-V can lower the memory of the guest at run time, while the SQL Server memory settings in lesson 3 assume a fixed 16 GB.
- Second disk on CM01. Learn advises against installing on the OS partition in production, because neither Windows nor Configuration Manager works properly once it fills up. Drive
D:holds the Configuration Manager installation, the SQL Server databases and the content.
Site system roles place their files on the NTFS drive with the most free space, unless the root of a drive contains an empty file named NO_SMS_ON_DRIVE.SMS. After Windows is installed on CM01, the DVD drive holds the letter D: and the second disk is offline. The DVD drive moves to E:, the second disk becomes D:, and the file keeps content off the system drive (Get-Disk shows the disk number):
# CM01: DVD drive to E:, second disk online as D:, system drive excluded
Get-CimInstance -ClassName Win32_Volume -Filter 'DriveType=5' |
Set-CimInstance -Property @{ DriveLetter = 'E:' }
Set-Disk -Number 1 -IsOffline $false
Initialize-Disk -Number 1 -PartitionStyle GPT
New-Partition -DiskNumber 1 -UseMaximumSize -DriveLetter D |
Format-Volume -FileSystem NTFS -NewFileSystemLabel 'Data' -Confirm:$false
New-Item -Path 'C:\NO_SMS_ON_DRIVE.SMS' -ItemType FileDownloads
| Software | Source | Note |
|---|---|---|
| Windows Server 2025 | Microsoft Evaluation Center | 180-day evaluation |
| Windows 11 Enterprise | Microsoft Evaluation Center | Version 26H2 at the time of writing (25H2 and 24H2 also work); 23H2 no longer receives updates; 26H2 needs ConfigMgr 2603, which lesson 3 installs before the first client in lesson 5 |
| SQL Server 2022 | Microsoft SQL Server downloads | Plus the latest cumulative update; see lesson 3 for editions |
| SQL Server Management Studio | Microsoft Learn (SSMS download page) | Optional but useful |
| Configuration Manager current branch | Microsoft Evaluation Center | Version 2509 at the time of writing; lesson 3 explains why |
| Windows ADK and Windows PE add-on | Microsoft Learn, Support for the Windows ADK | 10.1.26100.9457 (September 2026) |
| Microsoft ODBC Driver 18.6.2.1 for SQL Server, plus Visual C++ v14 Redistributable (x64 and x86) | Microsoft Learn (ODBC driver download page, previous releases) | The page offers 18.7.1.1 by default, which is excluded for 2509 and 2603; 18.6.2.1 needs the Redistributable 14.34 or later; Configuration Manager setup also needs the x86 Redistributable (lesson 3) |
The network
The lab uses an isolated network with a fixed address range, 192.168.10.0/24. CM01 needs internet access for the setup prerequisite downloads and for in-console updates, so the host provides NAT. The steps follow Microsoft's guide Set up a NAT network and run once on the host in an elevated PowerShell session:
# Host: internal switch with the gateway address and NAT for 192.168.10.0/24
New-VMSwitch -SwitchName 'CorpLab' -SwitchType Internal
New-NetIPAddress -IPAddress 192.168.10.1 -PrefixLength 24 `
-InterfaceAlias 'vEthernet (CorpLab)'
New-NetNat -Name 'CorpLabNat' -InternalIPInterfaceAddressPrefix '192.168.10.0/24'Windows supports only one NAT network per host. If Get-NetNat already returns one, for example from container tools, it is removed first; according to the guide, a second NAT leaves the host in an unknown state.
Directly after New-NetIPAddress, the lab run showed the address as Tentative, and its persistent copy as Invalid. That is a transition state: Get-NetIPAddress -InterfaceAlias 'vEthernet (CorpLab)' shows Preferred a few seconds later.
All three VMs connect to the CorpLab switch. WinNAT does not assign addresses, so every VM gets a static configuration:
| VM | IP address | Gateway | DNS server |
|---|---|---|---|
| DC01 | 192.168.10.10 | 192.168.10.1 | 192.168.10.10, then 127.0.0.1 |
| CM01 | 192.168.10.20 | 192.168.10.1 | 192.168.10.10 |
| CL01 | 192.168.10.50 | 192.168.10.1 | 192.168.10.10 |
No DHCP server is needed; DHCP matters only for network boot (PXE) in the advanced course.
Creating the VMs and installing Windows
The VMs are created on the host once the CorpLab switch exists. The path is an example. New-VM creates the system disk, CM01 gets its second disk from New-VHD, and CL01 needs a key protector before its virtual TPM can be enabled. All three get static memory; for CM01 it matters, because the SQL Server memory settings in lesson 3 assume a fixed 16 GB. Automatic checkpoints are off, so that only the named lesson checkpoints exist.
# Host: DC01, CM01 and CL01 as generation 2 VMs on the CorpLab switch
$base = 'D:\Hyper-V\CorpLab'
$specs = @(
@{ Name = 'DC01'; Cpu = 2; Memory = 4GB; Disks = @(60GB) }
@{ Name = 'CM01'; Cpu = 4; Memory = 16GB; Disks = @(100GB, 200GB) }
@{ Name = 'CL01'; Cpu = 2; Memory = 4GB; Disks = @(64GB) }
)
foreach ($s in $specs) {
New-VM -Name $s.Name -Generation 2 -MemoryStartupBytes $s.Memory `
-NewVHDPath "$base\$($s.Name)-C.vhdx" -NewVHDSizeBytes $s.Disks[0] `
-SwitchName 'CorpLab' -Path $base | Out-Null
Set-VM -Name $s.Name -ProcessorCount $s.Cpu -StaticMemory -AutomaticCheckpointsEnabled $false
if ($s.Disks.Count -gt 1) {
New-VHD -Path "$base\$($s.Name)-D.vhdx" -SizeBytes $s.Disks[1] -Dynamic | Out-Null
Add-VMHardDiskDrive -VMName $s.Name -Path "$base\$($s.Name)-D.vhdx"
}
}
# CL01: key protector first, then the virtual TPM
Set-VMKeyProtector -VMName CL01 -NewLocalKeyProtector
Enable-VMTPM -VMName CL01Generation 2 VMs start with Secure Boot on and the Microsoft Windows template; Get-VMFirmware -VMName DC01, CM01, CL01 shows it. Each VM then boots from its installation ISO:
# Host: attach the ISO and boot from it first (example for DC01)
Add-VMDvdDrive -VMName DC01 -Path 'D:\ISO\WindowsServer2025.iso'
Set-VMFirmware -VMName DC01 -FirstBootDevice (Get-VMDvdDrive -VMName DC01)Notes from the lab run:
- Boot prompt. Press any key to boot from CD or DVD stays only a few seconds. Open the VM window, start the VM there and press a key right away; otherwise start it again.
- Edition. The lab uses Standard Evaluation (Desktop Experience), the edition with the desktop.
- Target disk on CM01. Setup lists both disks and, in the lab run, preselected Disk 1 with 200 GB. Select Disk 0 (100 GB); otherwise Windows lands on the later data drive
D:. - Keyboard layout. The VM reads keys with the layout chosen in setup. If it differs from the physical keyboard, letters such as Y and Z and most special characters arrive differently, which matters for the first password.
- CL01 without internet. Without DHCP, Windows 11 setup reports No Internet; I don't have internet continues with a local account. In the lab run, setup did not ask for a password for that account. After the domain join it is no longer needed:
Disable-LocalUser -Name '<account>'. - Eject the ISO before the checkpoints:
Set-VMDvdDrive -VMName DC01 -Path $null, then check withGet-VMDvdDrive -VMName DC01; in the lab run, the command had to be repeated for CM01 and CL01. With the ISO still attached, each restart waits at the boot prompt first.
The domain controller
All commands in this lesson run in an elevated Windows PowerShell 5.1 session, the default shell of Windows Server 2025 and Windows 11. Add-Computer, used further down, is not part of PowerShell 7.
After Windows Server 2025 is installed on DC01, the computer gets its static address and is renamed. The interface alias Ethernet is the usual name of the first network adapter; Get-NetAdapter shows the actual name.
# DC01: static address, DNS pointing to itself for now, new computer name
New-NetIPAddress -InterfaceAlias 'Ethernet' -IPAddress 192.168.10.10 `
-PrefixLength 24 -DefaultGateway 192.168.10.1
Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 127.0.0.1
Rename-Computer -NewName 'DC01' -RestartAfter the restart, the AD DS role is installed and the forest is created:
# DC01: install AD DS and create the forest corp.example.com
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -DomainName 'corp.example.com' -DomainNetbiosName 'CORP' -InstallDnsWithout -SafeModeAdministratorPassword, the cmdlet prompts twice for the Directory Services Restore Mode (DSRM) password, the preferred usage according to its reference. For a new forest it installs the DNS Server service by default (-InstallDns makes that explicit), asks for confirmation unless -Force is added, and restarts the server when it finishes.
Without -ForestMode and -DomainMode, the cmdlet chooses the functional levels itself. A Windows Server 2025 domain controller supports only the Windows Server 2016 and 2025 functional levels, so either result meets the Windows Server 2008 R2 minimum of the Configuration Manager prerequisite check.
After the restart, DC01 still uses only the loopback address 127.0.0.1 as DNS server; promotion also adds ::1 for IPv6. Microsoft's DNS Best Practices Analyzer rule, documented for Windows Server 2008 to 2012, asks for the loopback address in the list, but not as the first entry: with loopback first, Active Directory might be unable to find its replication partners. With a single domain controller, the lab lists its own address first and the loopback address second, and leaves the IPv6 entry as it is. Signed in as CORP\Administrator:
# DC01: DNS order (own address, then loopback), then the checks
Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 192.168.10.10, 127.0.0.1
Get-ADForest | Format-List -Property ForestMode, SchemaMaster
Get-ADDomain | Format-List -Property DomainMode, PDCEmulator
Resolve-DnsName -Name 'DC01.corp.example.com'
Resolve-DnsName -Name 'www.microsoft.com'Format-List keeps the outputs apart: pasted as one block, PowerShell would otherwise format every result with the columns of the first one. SchemaMaster and PDCEmulator show DC01.corp.example.com, and DC01 resolves to 192.168.10.10. The last query tests internet name resolution, which CM01 depends on later. The DNS server uses root hints by default; if the query fails, a forwarder to a resolver reachable through the NAT helps: Add-DnsServerForwarder -IPAddress <resolver address>.
Accounts and groups
Each Configuration Manager account gets only the rights its job needs:
| Name | Type | Purpose | Rights in the lab |
|---|---|---|---|
CORP\cmadmin | User | Site installation account (runs setup); daily administration | Member of CM-Admins |
CORP\CM-Admins | Global group | Administrators of the site | Local Administrators on CM01; SQL Server sysadmin (lesson 3) |
CORP\svc-cm-push | User | Client push installation account | Member of CM-ClientPush; no domain admin rights; denied local sign-in |
CORP\CM-ClientPush | Global group | Holds the client push account | Local Administrators on every client |
CORP\svc-sql | User | Service account of the SQL Server Database Engine | Low-rights domain user; SPN registered |
Learn requires the site installation account to be an Administrator on the site server, the site database server and each SMS Provider, and sysadmin on the SQL Server instance of the site database. All of these run on CM01, and cmadmin gets both rights through CM-Admins. Setup makes the installing account a Full Administrator, and right after installation it is the only account with console access. A named administrative account instead of the built-in domain Administrator keeps the audit trail readable.
The following script runs on DC01 as a domain administrator. It creates an OU structure, the three accounts and the two groups. The password must meet the domain password policy; otherwise New-ADUser reports an error and the account stays disabled. Saved as a .ps1 file on DC01, the script runs in one go and prompts once for the password.
# DC01: OUs, lab accounts and groups (lab only: one shared password)
$domain = (Get-ADDomain).DistinguishedName
New-ADOrganizationalUnit -Name 'Corp' -Path $domain
$lab = "OU=Corp,$domain"
foreach ($ou in 'Servers', 'Workstations', 'Accounts', 'Groups') {
New-ADOrganizationalUnit -Name $ou -Path $lab
}
$pw = Read-Host -Prompt 'Password for the lab accounts' -AsSecureString
foreach ($name in 'cmadmin', 'svc-cm-push', 'svc-sql') {
New-ADUser -Name $name -SamAccountName $name `
-UserPrincipalName "$name@corp.example.com" `
-Path "OU=Accounts,$lab" -AccountPassword $pw -Enabled $true
}
Set-ADUser -Identity 'svc-cm-push' -PasswordNeverExpires $true
Set-ADUser -Identity 'svc-sql' -PasswordNeverExpires $true
foreach ($group in 'CM-Admins', 'CM-ClientPush') {
New-ADGroup -Name $group -SamAccountName $group -GroupScope Global `
-GroupCategory Security -Path "OU=Groups,$lab"
}
Add-ADGroupMember -Identity 'CM-Admins' -Members 'cmadmin'
Add-ADGroupMember -Identity 'CM-ClientPush' -Members 'svc-cm-push'The client push account
Learn states that the client push installation account must be a member of the local Administrators group on the target computers and does not require Domain Admin rights. Because the account is an administrator on every client, it should not be able to sign in interactively: the accounts reference recommends assigning it the user right Deny log on locally through Group Policy. In the lab, a GPO linked to OU=Workstations assigns the right to CORP\svc-cm-push under Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment. In Group Policy Management, right-click Workstations, choose Create a GPO in this domain, and Link it here, name it, then Edit it and define Deny log on locally. The GPO report shows the result as the internal name of the right:
# DC01: check the user right in the GPO (name as created in the lab)
$gpo = Get-GPO -Name 'Workstations - Deny log on locally (client push)'
([xml](Get-GPOReport -Guid $gpo.Id -ReportType Xml)).GPO.Computer.ExtensionData.Extension.UserRightsAssignment |
ForEach-Object { $_.Name + ' = ' + ($_.Member.Name.'#text' -join ', ') }The output is SeDenyInteractiveLogonRight = CORP\svc-cm-push.
The SQL Server service account
Configuration Manager supports running SQL Server under a low-rights domain user or under the Local System account. Learn calls the low-rights domain user the best practice; its service principal name (SPN) then has to be registered manually, so that site systems can authenticate to SQL Server with Kerberos. The lab registers it for the NetBIOS name and the FQDN of CM01 on port 1433, as a domain administrator:
# DC01: register the SQL Server SPNs for the service account
setspn -S MSSQLSvc/CM01:1433 CORP\svc-sql
setspn -S MSSQLSvc/CM01.corp.example.com:1433 CORP\svc-sql
setspn -L CORP\svc-sqlLearn's examples use -A; the setspn reference recommends -S, which checks for duplicate SPNs before it adds one. setspn -L lists both entries. The account needs no group membership; SQL Server setup grants the service rights to the per-service SID of the Database Engine.
No network access account
Older guides create a network access account in every site. Learn is narrower: clients use it only when they cannot use their computer account to access content, which mostly applies to workgroup computers, computers from untrusted domains and some operating system deployment scenarios. With HTTPS or Enhanced HTTP, even workgroup and Microsoft Entra joined clients can download content securely without it. A few OS deployment features, such as multicast, still need the account; this course does not use them. The lab site uses Enhanced HTTP (lesson 3) and has only domain-joined clients, so it does not create a network access account. Microsoft has also hardened access to network access account information; background is in Configuration Manager 2603.
Joining CM01 and CL01 to the domain
CM01 and CL01 get their static addresses and DNS server 192.168.10.10 from the network table and are renamed before they join, with the same commands as on DC01. The join places each computer directly into its OU:
# CM01: join the domain into OU=Servers (on CL01: OU=Workstations)
Add-Computer -DomainName 'corp.example.com' `
-OUPath 'OU=Servers,OU=Corp,DC=corp,DC=example,DC=com' `
-Credential (Get-Credential -UserName 'CORP\Administrator' -Message 'Domain join') `
-RestartAfter the restart, the local Administrators groups are filled:
# CM01: site administrators become local administrators
Add-LocalGroupMember -Group 'Administrators' -Member 'CORP\CM-Admins'
# CL01: the client push group becomes local administrator
Add-LocalGroupMember -Group 'Administrators' -Member 'CORP\CM-ClientPush'Get-LocalGroupMember -Group 'Administrators' shows the result. In production, Group Policy (Restricted Groups or Preferences) does this for all clients.
Name resolution and time
Client push, the connections to SQL Server and the publishing to Active Directory authenticate with Kerberos. Kerberos needs correct names and, by default, tolerates a clock difference of 5 minutes to the domain controller. Domain members take their time from the domain hierarchy, here DC01. Before lesson 3, these checks run on CM01 and CL01:
# CM01 and CL01: name resolution and clock offset to DC01
Resolve-DnsName -Name 'CM01.corp.example.com'
Resolve-DnsName -Name 'CL01.corp.example.com'
w32tm /stripchart /computer:DC01.corp.example.com /samples:3 /dataonlyEach name resolves to its address, and the offsets are far below one second. On Hyper-V, w32tm /query /source can show VM IC Time Synchronization Provider, the host's time service, instead of DC01; what matters is that the offset stays small.
The time zone is a separate setting. In the lab run, all three VMs came up with Pacific Standard Time, the default of the English evaluation images used here, although the clock itself was correct. Kerberos compares the clocks independently of the time zone, but the logs, the console and the status messages show local times, and a wrong zone makes them hard to match with the host. Set the zone of the lab host on all three VMs, for example:
# DC01, CM01 and CL01: time zone of the lab host (example: Central Europe)
Set-TimeZone -Id 'W. Europe Standard Time'
Get-TimeZoneGet-TimeZone -ListAvailable lists the valid IDs.
Extending the Active Directory schema
With an extended schema, sites publish their data to Active Directory, and clients find their management point and site there. The extension is not required to install a site, and the prerequisite check reports a missing extension as a warning, but Learn recommends it whenever on-premises clients are managed.
The extension is a one-time, forest-wide action that cannot be undone. Learn names two conditions: the account is a member of Schema Admins, and it signs in to the schema master domain controller. In the lab, DC01 is the only domain controller and therefore the schema master, and by default the Administrator of the forest root domain is the only member of Schema Admins.
- Make the Configuration Manager installation media available on DC01.
- As
CORP\Administrator, open an elevated command prompt or PowerShell session and runextadsch.exefrom the folderSMSSETUP\BIN\X64of the media. It reports Successfully extended the Active Directory schema. - Read the result in
extadsch.login the root of the system drive, and query the schema for the new objects:
# DC01: check the result of the schema extension
Select-String -Path "$env:SystemDrive\extadsch.log" -Pattern 'Successfully extended'
$schema = (Get-ADRootDSE).schemaNamingContext
Get-ADObject -SearchBase $schema -Filter "Name -like 'MS-SMS-*'" |
Select-Object -Property NameThe result line is not at the end of the log, which closes with a note on access rights; in the lab run it was line 23 of 29. The query lists the added classes and attributes, among them MS-SMS-Management-Point and MS-SMS-Site. A schema already extended for Configuration Manager 2007 or later needs no further action; the extensions have not changed since.
The System Management container
Sites publish their data into a container named System Management under CN=System in each domain. The container does not exist by default. Learn describes creating it with ADSI Edit, using an account with Create All Child Objects on CN=System, and granting the site server's computer account Full Control on This object and all descendant objects. The same in PowerShell and dsacls, on DC01 as the domain administrator:
# DC01: create CN=System Management and grant CM01 Full Control
$system = "CN=System,$((Get-ADDomain).DistinguishedName)"
New-ADObject -Name 'System Management' -Type 'container' -Path $system
dsacls "CN=System Management,$system" /G 'CORP\CM01$:GA' /I:T/G 'CORP\CM01$:GA' grants generic all (Full Control) to the computer account of CM01, and /I:T, the default, applies it to the object and all child objects. The single quotes keep PowerShell from treating $: as a variable. The CM01 computer account must exist, so this step runs after the domain join. Without options, dsacls "CN=System Management,$system" lists the permissions, including CORP\CM01$ with FULL CONTROL. Lesson 3's prerequisite check verifies this permission.
Firewall basics
The Windows Firewall stays on. The lab opens only what the site and the client need, following Learn's Ports used in Configuration Manager:
| From | To | Port | Used for | Rule |
|---|---|---|---|---|
| CM01 (site server) | CL01 | TCP 445, TCP and UDP 135, dynamic RPC | Client push: copying ccmsetup.exe to ADMIN$ and starting it through WMI | Rule groups on CL01 |
| CL01 | CM01 (MP, DP) | TCP 80, TCP 443 | Policy, registration, status and content | Rule on CM01 |
| CL01 | CM01 (MP) | TCP 10123 | Client notification; falls back to 80 or 443 | Rule on CM01 |
| CL01 | CM01 | TCP 445 | Manual installation from \\CM01\SMS_P01\Client (lesson 5) | Enabled by Windows when the share is created |
| Site components | SQL Server on CM01 | TCP 1433; TCP 4022 (Service Broker) | Site database access | Rule on CM01 |
| CM01, CL01 | DC01 | DNS 53, Kerberos 88, LDAP 389, GC 3268, RPC | Name resolution, sign-in, discovery, publishing | Created by the AD DS and DNS roles |
The prerequisite check requires the Windows Firewall to be off or to have an exception for SQL Server, by default TCP 1433 and TCP 4022. Learn lists this check as an error, with a warning-level variant for stand-alone primary sites. The rules on CM01 satisfy both:
# CM01: inbound rules for SQL Server and client communication
New-NetFirewallRule -DisplayName 'ConfigMgr - SQL Server' -Direction Inbound `
-Protocol TCP -LocalPort 1433, 4022 -Action Allow
New-NetFirewallRule -DisplayName 'ConfigMgr - Client traffic' `
-Direction Inbound -Protocol TCP -LocalPort 80, 443, 10123 -Action Allow
# CM01: WMI rules that Learn requires on every distribution point
Enable-NetFirewallRule -DisplayName 'Windows Management Instrumentation (DCOM-In)',
'Windows Management Instrumentation (WMI-In)'The last command matters because CM01 is also the distribution point: Learn requires the inbound rules Windows Management Instrumentation (DCOM-In) and (WMI-In) on every distribution point, otherwise clients fail to download content with error 0x801901F4 in DataTransferService.log. Lesson 4 verifies them.
For client push, Learn names the exceptions File and Printer Sharing (inbound and outbound) and Windows Management Instrumentation (WMI) (inbound). On CL01:
# CL01: rule groups required for client push
Enable-NetFirewallRule -DisplayGroup 'File and Printer Sharing'
Enable-NetFirewallRule -DisplayGroup 'Windows Management Instrumentation (WMI)'These names apply to English installations; in any language, -Group '@FirewallAPI.dll,-28502' (File and Printer Sharing) and -Group '@FirewallAPI.dll,-34251' (WMI) address the same groups. In production, Group Policy distributes the rules.
Common mistakes
| Symptom | Cause | Fix |
|---|---|---|
New-ADUser reports an error and the account stays disabled | The lab password does not meet the domain password policy | Choose a password that meets the policy, set it on the account and enable the account |
The host's network behaves unpredictably after New-NetNat | A second NAT network was created; Windows supports only one per host | Check Get-NetNat first and remove an existing NAT network before creating CorpLabNat |
dsacls fails or grants the permission to the wrong principal | PowerShell treated $: as a variable, or the CM01 computer account did not exist yet | Use single quotes around 'CORP\CM01$:GA' and run the step after the domain join of CM01 |
w32tm /stripchart shows offsets of minutes, and Kerberos sign-ins fail later | The clock of CM01 or CL01 differs from DC01 by more than the 5 minutes Kerberos tolerates by default | Correct the time source of the VM so that it follows the domain hierarchy, then check again |
| Windows on CM01 sits on the 200 GB disk | Setup preselected the second disk | Reinstall on Disk 0 (100 GB) before anything else is configured |
Get-DnsClientServerAddress on DC01 lists only 127.0.0.1 for IPv4 | The setting from before the promotion was kept | Set-DnsClientServerAddress -InterfaceAlias 'Ethernet' -ServerAddresses 192.168.10.10, 127.0.0.1 |
On the lab host, DC01 or CM01 resolves to another network | The host's hosts file or DNS still lists the names from an earlier lab | Check with Resolve-DnsName DC01 on the host and remove the old entries |
Enable-NetFirewallRule -DisplayGroup finds no rules | The display names apply to English installations only | Use -Group '@FirewallAPI.dll,-28502' (File and Printer Sharing) and -Group '@FirewallAPI.dll,-34251' (WMI) |
Try it
- Start from the lab state
sccm-L2-start(the same assccm-L1-end): the host withLab-Plan.mdand no lab VMs. On the host, runGet-NetNatin an elevated session. Expected: No NAT network exists, or the existing one is removed before step 2. Check:Get-NetNatreturns nothing. - Create the
CorpLabswitch and the NAT network. Expected: The switch exists, and the NAT network covers192.168.10.0/24. Check:Get-VMSwitch -Name 'CorpLab'; Get-NetNat | Select-Object -Property Name, InternalIPInterfaceAddressPrefix - Create DC01, CM01 and CL01 with the sizes from the table. Enable Secure Boot and the virtual TPM on CL01. Expected: Three generation 2 VMs connected to
CorpLab; CM01 has static memory. Check:Get-VM -Name DC01, CM01, CL01 | Select-Object -Property Name, Generation, DynamicMemoryEnabled - Install Windows Server 2025 on DC01, set its address, rename it, install AD DS and create the forest. Set the DNS order, run the checks, eject the ISO, then take a checkpoint of DC01 named
sccm-L2-forest. Expected:Get-DnsClientServerAddress -InterfaceAlias 'Ethernet' -AddressFamily IPv4lists192.168.10.10, 127.0.0.1;SchemaMasterandPDCEmulatorshowDC01.corp.example.com, and bothResolve-DnsNamequeries return addresses. Check: the functional level block in The domain controller. - Run the accounts script on DC01 and register the SPNs for
CORP\svc-sql. Expected: Three enabled accounts inOU=Accounts,OU=Corp, two groups inOU=Groups,OU=Corp, and twoMSSQLSvc/entries. Check:setspn -L CORP\svc-sql - Install Windows Server 2025 on CM01 and Windows 11 on CL01. On CM01, initialise
D:and createC:\NO_SMS_ON_DRIVE.SMS. Set addresses, rename both, and join them intoOU=ServersandOU=Workstations. Expected: DC01 is in the Domain Controllers OU, CM01 inOU=Servers,OU=Corpand CL01 inOU=Workstations,OU=Corp. Check:Get-ADComputer -Filter * | Select-Object Name, DistinguishedNameon DC01 - Fill the local Administrators groups of CM01 and CL01, and assign Deny log on locally to
CORP\svc-cm-pushthrough a GPO onOU=Workstations. Expected: The Administrators group containsCORP\CM-Adminson CM01 andCORP\CM-ClientPushon CL01. Check:Get-LocalGroupMember -Group 'Administrators'on each computer - Run the name resolution and time checks on CM01 and CL01, and set the time zone on all three VMs. Expected: Each name resolves to its address, the offsets are far below one second, and
Get-TimeZoneshows the zone of the lab host. Check: the blocks in Name resolution and time. - Run
extadsch.exeon DC01 and check the log and the schema query. Expected:extadsch.logreports a successful extension, and the query listsMS-SMS-objects such asMS-SMS-Management-PointandMS-SMS-Site. Check: the block in Extending the Active Directory schema. - Create the System Management container and grant CM01 Full Control. Expected: The permission list contains
CORP\CM01$withFULL CONTROL. Check:dsacls "CN=System Management,CN=System,DC=corp,DC=example,DC=com" - Create the firewall rules on CM01, enable its two WMI rules, and enable the rule groups on CL01. Expected: From CM01, both connection tests to CL01 succeed. Check:
Test-NetConnection CL01.corp.example.com -Port 445and-Port 135returnTcpTestSucceeded : True. Running the test once before the rule groups are enabled shows their effect: in the lab run, port 445 failed and port 135 already succeeded on a fresh Windows 11. - Take a checkpoint of all three VMs named
sccm-L2-end. Expected: The checkpoint exists for DC01, CM01 and CL01. Check:Get-VMCheckpoint -VMName DC01, CM01, CL01 | Select-Object -Property VMName, Nameon the host
Check your understanding
- Why are the computer names and the domain join finished before Configuration Manager is installed?
Answer
Learn lists a change of computer name, domain membership or domain name as unsupported for any site system server once the role is installed. Changing them afterwards would require removing the roles or, for the site server, uninstalling the site.
- Which rights does the client push installation account need, and which does it not need?
Answer
It must be a member of the local Administrators group on every target client. It does not need Domain Admin rights, and it should be denied local sign-in through the Deny log on locally user right.
- Why does the lab not create a network access account?
Answer
Clients first use their own computer account to access content. The network access account is mainly for workgroup clients, untrusted domains and some OS deployment scenarios, and with HTTPS or Enhanced HTTP even those can access content without it. The lab has only domain-joined clients and uses Enhanced HTTP.
- What has to be true before
extadsch.execan extend the schema, and how is the result checked?
Answer
The account is a member of Schema Admins and signs in to the schema master domain controller. The result is in extadsch.log in the root of the system drive; a schema query for MS-SMS-* objects confirms it.
- Which permission does the System Management container need, and for whom?
Answer
Full Control for the computer account of each site server that publishes to the domain (here CORP\CM01$), applied to this object and all descendant objects.
Summary
- Three Generation 2 VMs on an isolated, NATed
192.168.10.0/24network; CM01 has 16 GB of static memory. Install-ADDSForestcreatescorp.example.comwith DNS on DC01.- Least-privilege accounts for administration, client push (local admin on clients only) and SQL Server (SPN registered); no network access account, because domain clients use their computer account and Enhanced HTTP covers the rest.
- CM01 and CL01 join the domain before setup; correct names and a small clock offset are prerequisites for Kerberos.
extadsch.exeextends the schema once per forest; the System Management container gets Full Control for the site server's computer account.- The firewall stays on, with specific rules on CM01 and CL01.
Sources
- Accounts used in Configuration Manager — https://learn.microsoft.com/en-us/intune/configmgr/core/plan-design/hierarchy/accounts (course check 2026-11-29)
- Ports used in Configuration Manager — https://learn.microsoft.com/en-us/intune/configmgr/core/plan-design/hierarchy/ports (course check 2026-11-29)
- Set up a NAT network — https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/setup-nat-network (course check 2026-11-29)
- DNS: DNS servers on <adapter name> should include the loopback address, but not as the first entry (Best Practices Analyzer rule) — https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-r2-and-2008/ff807362(v=ws.10) (checked 2026-12-01)
- Lab run 2026-11-30 to 2026-12-02 (Windows Server 2025 build 26100, Windows 11 26H2 build 26300, Configuration Manager 2509 media) — observations marked "in the lab run"
- Supported SQL Server versions — https://learn.microsoft.com/en-us/intune/configmgr/core/plan-design/configs/support-for-sql-server-versions (2026-07-28; checked 2026-11-30)
- Support for the Windows ADK — https://learn.microsoft.com/en-us/intune/configmgr/core/plan-design/configs/support-for-windows-adk (2026-10-22; checked 2026-11-30)
- Manage distribution points — https://learn.microsoft.com/en-us/intune/configmgr/core/servers/deploy/configure/install-and-configure-distribution-points (ms.date 2025-07-17; checked 2026-11-30)