Install and test PQC PRZM
This is the path for a first install in your own lab. Version 0.1 reads the domain and writes files on the management server. It does not change a domain controller, a member server, or a client until you copy a generated script to that computer and run it there with -ConfirmEnforce ENFORCE.
Commands below match pqcprzm 0.1.0. Run pqcprzm --help if a flag is refused: unknown flags exit 3.
Related: trust and permissions, audit policy detail, baseline deployment.
1. What you install
One folder on a management server, for example C:\PqcPrzm, containing pqcprzm.exe. No Windows service, no IIS site, no inbound port.
| Command | Connects to the domain | What it writes |
|---|---|---|
preflight |
No | Text on screen. Exit 4 if the token is over-privileged. |
plan |
No | Text on screen. |
collect |
Yes, and only after --confirm-collect CONFIRM |
snapshot.json, report.html, activity.json |
assess |
No | report.html, report.json, activity.json |
baseline |
No | baseline-plan.json, scripts, review copies, activity.json |
catalog |
No | The check list on screen. |
collect is compiled only when the publish runs on Windows. A Linux win-x64 publish can still run assess, baseline, plan, and preflight. collect on that binary stops with “This build does not include the Windows collector.”
2. Prerequisites
Management server
Use a domain member that is not a domain controller. Windows Server 2022 or Windows Server 2025 is the right host. .NET 10 also runs on Windows Server 2016 and 2019, so an older member server can host the tool, but do not put it on a domain controller if you have a choice.
The server needs outbound TCP to the targets and nothing listening for PQC PRZM. Disk space is the report folder. Protect that folder with BitLocker. Do not put --out on a share other customers can read.
Runtime or a self-contained binary
Prefer a self-contained publish. The management server then does not need a .NET install.
If you publish framework-dependent instead, install only the .NET 10 runtime (the console runtime, not the ASP.NET runtime and not the desktop runtime):
winget install Microsoft.DotNet.Runtime.10
The SDK is needed on the machine that builds. It is not needed on the management server when you copy a self-contained pqcprzm.exe there.
Accounts
Creating the account is a one-time domain-admin action. Running the tool is not. The tool account is a gMSA, or a normal user if you pass -User to the deploy script. It is not a member of Domain Admins, Enterprise Admins, Schema Admins, Administrators, Account Operators, Server Operators, or Backup Operators.
Network
Inbound on the management server: none.
Outbound from the management server, only while collect is running:
| To | Port | Why |
|---|---|---|
The domain controller in --dc |
TCP 389 | LDAP. Computers, operating system, userAccountControl, and public CA certificates. Password and LAPS attributes are not requested. |
Each domain controller LDAP returns, plus every --computer |
TCP 135, then a dynamic RPC port | Remote Event Log. |
| Those same computers | TCP 445 | Remote registry read of SMB, Schannel, NTDS, and LSA. If this is denied, that host is a gap. The tool does not retry as Administrator. |
On each target, allow the domain-profile firewall groups Remote Event Log Management and File and Printer Sharing (SMB-In). Those are inbound on the target, not on the tool.
assess, baseline, plan, and preflight open none of these ports.
3. Build the win-x64 binary
Install the SDK on a Windows build machine (it can be the management server):
winget install Microsoft.DotNet.SDK.10
Clone the repository and publish there. The Windows probe is included only when this command runs on Windows.
cd C:\src\pqc.przm.nl
dotnet publish .\src\PqcPrzm.Cli\PqcPrzm.Cli.csproj -c Release -r win-x64 --self-contained true `
-p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true `
-o C:\PqcPrzm
Get-FileHash C:\PqcPrzm\pqcprzm.exe -Algorithm SHA256
.\pqcprzm.exe --help
--help prints the six commands and does not connect.
Framework-dependent publish, if the runtime from section 2 is already installed:
dotnet publish .\src\PqcPrzm.Cli\PqcPrzm.Cli.csproj -c Release -r win-x64 --self-contained false -o C:\PqcPrzm
There is no Authenticode signature in this repository. Trust a binary you built yourself, and keep the SHA256 next to your notes.
Smoke test without a domain, from a copy of the repo so the sample files are present:
cd C:\src\pqc.przm.nl
C:\PqcPrzm\pqcprzm.exe assess --snapshot .\samples\horizon-school.json --out C:\PqcPrzm\sample
C:\PqcPrzm\pqcprzm.exe baseline --snapshot .\samples\pilot-smb.json --out C:\PqcPrzm\pilot-sample
Open C:\PqcPrzm\sample\report.html. The Dutch line at the top says the report changed nothing. activity.json has "connections": [].
4. Create the service account
Run this once, from an elevated Windows PowerShell on a machine with the Active Directory module. On a server that is:
Install-WindowsFeature RSAT-AD-PowerShell
A new forest has no KDS root key, and New-ADServiceAccount fails without one. The deploy script does not create that key. In a lab that you just built, create a key that is already valid. In a domain that already uses gMSAs, skip this.
Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10))
Review, then create. MGMT is the hostname of the management server. Replace lab.local.
cd C:\src\pqc.przm.nl\deploy
.\New-PqcPrzmServiceAccount.ps1
.\New-PqcPrzmServiceAccount.ps1 `
-SamAccountName svc_pqcprzm `
-DnsHostName svc_pqcprzm.lab.local `
-PrincipalsAllowedToRetrieveManagedPassword 'MGMT$' `
-ConfirmEnforce ENFORCE
The first run prints the plan and writes nothing. The second creates the gMSA, not trusted for delegation, and does not add a privileged group.
On the management server:
Install-ADServiceAccount -Identity svc_pqcprzm
Test-ADServiceAccount -Identity svc_pqcprzm
Test-ADServiceAccount must return True. If it returns False, the computer account was not in PrincipalsAllowedToRetrieveManagedPassword.
A normal user, when you do not want a gMSA yet:
.\New-PqcPrzmServiceAccount.ps1 -User -SamAccountName svc_pqcprzm -ConfirmEnforce ENFORCE
The user is created disabled. Enable it only after you have set a lab password you are willing to type, and only for the management server. Do not set it trusted for delegation. The rest of this guide uses the gMSA name LAB\svc_pqcprzm$.
5. Rights on each target
Do this as an administrator. Do not add svc_pqcprzm$ to Administrators to make a read succeed.
Event Log Readers
Group Policy, linked to the domain or to an OU that contains the domain controllers and the computers you will pass to --computer:
Computer Configuration\Preferences\Control Panel Settings\Local Users and Groups
New local group, action Update, group name Event Log Readers (built-in), add LAB\svc_pqcprzm$.
Do not use Restricted Groups for this. Restricted Groups can replace the whole membership. Do not grant Manage auditing and security log. Event Log Readers is the right that current Windows uses to read the Security log.
Remote registry, optional
Logs work without this. SMB, Schannel, NTDS, and LSA values need a remote registry read. If it is denied, the report lists a gap and the tool stops that read. It does not ask for a higher privilege.
On each target:
Set-Service RemoteRegistry -StartupType Automatic
Start-Service RemoteRegistry
Then grant the gMSA read on the remote-registry pipe and on the keys the collector opens. Run this elevated on the target, or ship the same ACL in Group Policy Preferences under Computer Configuration\Preferences\Windows Settings\Registry (but an ACL is easier in the script below).
$account = 'LAB\svc_pqcprzm$'
$paths = @(
'SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg',
'SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters',
'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters',
'SYSTEM\CurrentControlSet\Control\Lsa',
'SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0',
'SYSTEM\CurrentControlSet\Services\Netlogon\Parameters',
'SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL'
)
if ((Get-WmiObject Win32_ComputerSystem).DomainRole -ge 4) {
$paths += 'SYSTEM\CurrentControlSet\Services\NTDS\Parameters'
$paths += 'SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics'
}
$inherit = [System.Security.AccessControl.InheritanceFlags]'ContainerInherit,ObjectInherit'
$rule = New-Object System.Security.AccessControl.RegistryAccessRule(
$account, 'ReadKey', $inherit, 'None', 'Allow')
foreach ($path in $paths) {
$key = [Microsoft.Win32.Registry]::LocalMachine.OpenSubKey($path, $true)
if ($null -eq $key) { continue }
$acl = $key.GetAccessControl()
$acl.AddAccessRule($rule)
$key.SetAccessControl($acl)
$key.Close()
}
winreg is what decides whether a non-admin may connect remotely. Read on that key is not membership of Administrators.
Folder on the management server
icacls C:\PqcPrzm /grant 'LAB\svc_pqcprzm$:(OI)(CI)M' /T
6. Outbound firewall
Review, then apply. The CIDR is your lab subnet, not the internet.
cd C:\src\pqc.przm.nl\deploy
.\New-PqcPrzmOutboundFirewall.ps1 -Program 'C:\PqcPrzm\pqcprzm.exe' -InternalCidr '10.0.0.0/24'
.\New-PqcPrzmOutboundFirewall.ps1 -Program 'C:\PqcPrzm\pqcprzm.exe' -InternalCidr '10.0.0.0/24' -ConfirmEnforce ENFORCE
Get-NetFirewallRule -DisplayName 'PQC PRZM*'
The first run writes nothing. The second creates PQC PRZM block outbound for that executable and PQC PRZM allow for each CIDR you named. Repeat -InternalCidr is not how this script takes several networks: pass an array, -InternalCidr '10.0.0.0/24','10.0.1.0/24'.
Apply this after a successful collect, or test collect again immediately. An explicit block rule can win over an allow rule for the same program. If the domain controller becomes unreachable from pqcprzm.exe only, remove the rules and keep collecting without them:
Remove-NetFirewallRule -DisplayName 'PQC PRZM*'
The template is a bound on the program. It is not a claim that Windows will always prefer the allow rule.
7. Audit policy, then wait
The tool does not turn these on. A quiet log is evidence only after the policy that would have written the event was on. Link one GPO, then gpupdate /force on each target. These settings apply without a reboot.
Turn on subcategory override, or the advanced policy below is ignored when a legacy category is also set:
Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options
Audit: Force audit policy subcategory settings (Windows Vista or later) to override audit policy category settings = Enabled.
Security log
Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies
| Path under Audit Policies | Policy | Setting |
|---|---|---|
| Logon/Logoff | Audit Logon | Success and Failure |
| Account Logon | Audit Kerberos Authentication Service | Success and Failure |
| Account Logon | Audit Kerberos Service Ticket Operations | Success and Failure |
Success is what 4624, 4768, and 4769 need. Failure is useful and is not required by the checks.
NTLM
Same Security Options folder as the subcategory override. Names start with Network security:
| Policy | Value during the window | Do not set this yet |
|---|---|---|
| Restrict NTLM: Audit Incoming NTLM Traffic | Enable auditing for all accounts | |
| Restrict NTLM: Outgoing NTLM traffic to remote servers | Audit all | Deny all |
| Restrict NTLM: Audit NTLM authentication in this domain | Enable all (domain controllers) | |
| Restrict NTLM: Incoming NTLM traffic | Allow | Deny |
| Restrict NTLM: NTLM authentication in this domain | Disable, or Allow | Deny for domain accounts |
| LAN Manager authentication level | leave the current value | Send NTLMv2 response only. Refuse LM and NTLM (level 5) |
Events: Microsoft-Windows-NTLM/Operational 8001 (client), 8002 (server), 8003 (member, domain account), 8004 (domain controller).
SMB
On each file server and domain controller. This logs. It does not turn SMB1 off and it does not require signing.
Set-SmbServerConfiguration -AuditSmb1Access $true -AuditClientDoesNotSupportSigning $true -Force
There is no separate Administrative Template for SMB1 audit on every Windows version. Put the same values in Group Policy Preferences if you want them in the GPO:
Computer Configuration\Preferences\Windows Settings\Registry
| Key | Value | Data |
|---|---|---|
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters |
AuditSmb1Access |
REG_DWORD 1 |
| same key | AuditClientDoesNotSupportSigning |
REG_DWORD 1 |
Signing audit also exists as an Administrative Template on current Windows:
Computer Configuration\Policies\Administrative Templates\Network\Lanman Server
Audit client does not support signing = Enabled.
Channel: Microsoft-Windows-SMBServer/Audit. Event 3000 is an inbound SMB1 attempt. Events 3021 and 3027 are inbound clients that do not sign. Those events do not prove that this computer’s own outbound SMB1 client is unused, and they do not prove that a NAS it connects to can sign. The report keeps those client settings at Unknown until there is evidence about that direction.
LDAP, domain controllers only
Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\Security Options
| Policy | During the window | Later, only if the report says so |
|---|---|---|
| Domain controller: LDAP server signing requirements | None | Require signing |
| Domain controller: LDAP server channel binding token requirements | When supported | Always |
When supported is the mode that writes event 3039. Never does not. A quiet 3039 log while the policy is Never is not evidence, and the report will not call that safe to enforce.
Event 2889 needs a diagnostic the security option does not set. Group Policy Preferences, registry:
HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Diagnostics
value name 16 LDAP Interface Events, REG_DWORD 2.
This is noisy. Turn it on for the window, then set it back to 0 when you are done naming clients. The tool does not set it.
How long to wait
gpupdate /force on each machine you will collect, then a few minutes so new logons and binds hit the new policy.
In a lab, generate the events in section 14 after that, then collect. Two quiet minutes are not a customer window.
For a real estate, leave the audit policies on through a normal week of use before you treat an empty log as “nobody depends on this”. The CLI has no start-date flag. collect reads at most 5000 events per channel, from the oldest event forward. On a new lab VM that is the whole log. On a domain controller with a large Security log, events past the first 5000 are not in the snapshot. Confirm a lab user you just created appears in the report. If the log is large and that user is missing, the cap is why.
8. preflight, plan, collect, assess
Run the tool as the gMSA, not as your administrator. An elevated admin token exits preflight with code 4 and a WARNING line. That warning is the check working.
A scheduled task is the straightforward way to run as the gMSA. Limit it. The tool does not need elevation on the management server.
$arg = '/c C:\PqcPrzm\pqcprzm.exe preflight > C:\PqcPrzm\preflight.txt 2>&1'
$action = New-ScheduledTaskAction -Execute 'C:\Windows\System32\cmd.exe' -Argument $arg -WorkingDirectory 'C:\PqcPrzm'
$principal = New-ScheduledTaskPrincipal -UserId 'LAB\svc_pqcprzm$' -LogonType Password -RunLevel Limited
Register-ScheduledTask -TaskName 'PQC PRZM preflight' -Action $action -Principal $principal | Out-Null
Start-ScheduledTask -TaskName 'PQC PRZM preflight'
Get-Content C:\PqcPrzm\preflight.txt
Exit 0 and no WARNING line means the token is not in a group assessment refuses. Exit 4 means remove that membership before you point the account at a customer domain. Either way, preflight opens no socket.
Plan. Still no connection. Repeat --computer for the member server and the client. Domain controllers do not all need to be listed: after LDAP, collect contacts every domain controller the directory returns, plus --dc, plus each --computer. It does not contact other computers.
C:\PqcPrzm\pqcprzm.exe plan --domain lab.local --dc dc01.lab.local --computer fs01.lab.local --computer client01.lab.local
Read the lines. You should see ldap-read to dc01.lab.local:389, eventlog-read and registry-read for the domain controller and for each computer, and a certificate read that says private keys are not opened. The last line is No connection was opened.
Collect. The same command without the confirm word prints the plan and stops:
C:\PqcPrzm\pqcprzm.exe collect --customer 'PQC lab' --domain lab.local --dc dc01.lab.local `
--computer fs01.lab.local --computer client01.lab.local --out C:\PqcPrzm\lab
That exits 0 and prints Nothing was collected. When the plan matches what you expect:
C:\PqcPrzm\pqcprzm.exe collect --customer 'PQC lab' --domain lab.local --dc dc01.lab.local `
--computer fs01.lab.local --computer client01.lab.local --out C:\PqcPrzm\lab `
--confirm-collect CONFIRM
Run that as the gMSA, with the same scheduled-task pattern, so the token is the one you reviewed. The task’s --out folder must exist and be writable by the gMSA.
On success the process prints three paths and a connection count:
C:\PqcPrzm\lab\snapshot.jsonC:\PqcPrzm\lab\report.htmlC:\PqcPrzm\lab\activity.json
collect does not write report.json. Assess the snapshot offline to get that file, and to rebuild the HTML without opening the network again:
C:\PqcPrzm\pqcprzm.exe assess --snapshot C:\PqcPrzm\lab\snapshot.json --out C:\PqcPrzm\lab-report
--events is optional. It is a directory of exported .xml or .evtx files merged into a snapshot you already have. Live collect does not use it.
Exit codes: 0 done, 2 usage, 3 load error or a non-Windows collect, 4 preflight found a privileged group.
9. Read the report and the baseline plan
Open report.html in a browser. It is a file, not a site.
The header is the customer name, the domain, the window, the host count, and the event count. Baseline and Post-quantum are separate scores. A low baseline score means items are not met yet. It does not by itself mean you should turn them on.
The Checks table has Status and Enforceability.
| Status | Meaning |
|---|---|
| Pass | The collected hosts already meet the check. |
| Fail | They do not. |
| Warning | The setting is met and a leftover client was still logged, or coverage is partial. |
| Inconclusive | The log or the policy was not there, so an empty result is not evidence. |
| Not implemented | The check has an id and no engine yet. catalog marks those todo. |
| Enforceability | Meaning |
|---|---|
| AlreadyMet | Leave it. The script may still list the computer so a later run keeps the value. |
| SafeToEnforce | This direction had an audit window and no blocker. |
| Blocked | A named client, account, or ticket would break. |
| Unknown | Not collected, or the log you have does not cover this direction. |
| NotApplicable | The check does not apply. |
Under a check, each host line is server or client where those are different. SMB1 server and SMB1 client are not the same decision. SMB server signing and SMB client signing are not the same decision.
Suggested order of work is text. It changes nothing.
Audit gaps name a host and the policy that was missing. Fix the gap, wait, and collect again before you trust a quiet result.
Activity is the same data as activity.json. Offline commands show no connections. A collect shows LDAP 389, Event Log RPC 135, and remote registry 445, to your hosts only.
The baseline plan is not in the collect report. Generate it with no network:
C:\PqcPrzm\pqcprzm.exe baseline --snapshot C:\PqcPrzm\lab\snapshot.json --out C:\PqcPrzm\lab-baseline
baseline-plan.json has one profile per role that was present (domain controllers, member servers, workstations). Each setting has a disposition:
| Disposition | What was generated |
|---|---|
| Enforce | A script contains the hosts that are SafeToEnforce or AlreadyMet for that setting. |
| Defer | Nothing safe was left to emit for that setting. No enforcing script lines for it. |
A first baseline run uses those two. AuditOnly and Exception exist on the plan model and the script skips them. This CLI does not set them.
artifact-manifest.json lists the files and says nothing was applied. The INF and registry.*.pol files are review copies. They are not a GPMC backup, and this version does not create or link a GPO.
10. WhatIf and rollback on one pilot
Pick one member server the plan marks Enforce for one SMB server setting, and whose host line is SafeToEnforce or AlreadyMet for that setting. Do not start with a domain controller, and do not start with a host marked Blocked or Unknown. Unknown hosts are absent from the script on purpose.
Copy the whole lab-baseline folder to that server, for example C:\PqcPrzm\pilot. The script changes the local computer only. It does not WinRM anywhere.
In an elevated PowerShell on the pilot:
cd C:\PqcPrzm\pilot
Get-SmbServerConfiguration | Select-Object EnableSMB1Protocol, RequireSecuritySignature, EnableSecuritySignature
.\Apply-PqcPrzmSmbBaseline.ps1
.\Apply-PqcPrzmSmbBaseline.ps1 -ConfirmEnforce ENFORCE -WhatIf
The run with no arguments prints the desired settings and No changes written. -WhatIf together with -ConfirmEnforce ENFORCE prints what it would change and does not write smb-baseline-state.json. If the computer name is not in the script, it throws and stops. Do not pass -ForceLocal for this test. That switch is an override for a machine you have already decided is in scope.
Apply once, then roll back from the state file that apply just wrote:
.\Apply-PqcPrzmSmbBaseline.ps1 -ConfirmEnforce ENFORCE
Get-SmbServerConfiguration | Select-Object EnableSMB1Protocol, RequireSecuritySignature, EnableSecuritySignature
.\Apply-PqcPrzmSmbBaseline.ps1 -Rollback -ConfirmEnforce ENFORCE
Get-SmbServerConfiguration | Select-Object EnableSMB1Protocol, RequireSecuritySignature, EnableSecuritySignature
Rollback without the state file stops with Refusing to roll back without a state file captured by this script. Rollback without -ConfirmEnforce ENFORCE writes nothing. After a successful rollback the two Get-SmbServerConfiguration views match.
The other scripts use the same two switches. State files sit next to the script: pqcprzm-ntlm-1-state.json, pqcprzm-ldap-1-state.json, pqcprzm-tls-1-state.json. LDAP and the NTLM domain settings are domain-controller changes. If you test those, test them on the lab DC only, and roll them back before you finish the day.
11. Verify outbound traffic
While assess, baseline, plan, or preflight runs, activity.json has an empty connections array. In Resource Monitor, Network, the process pqcprzm.exe has no remote address. The same from an elevated shell, using the process id:
Get-NetTCPConnection -OwningProcess <pid> -ErrorAction SilentlyContinue |
Select-Object RemoteAddress, RemotePort, State
During collect, the remote addresses are the domain controller and the computers you named. Ports are 389, 135, 445, and the dynamic RPC ports those Event Log calls negotiated. A public address, or TCP 80 or 443, is a defect. Stop and treat the binary as untrusted until you know why.
Sysmon event 3 is the independent copy of that list, if Sysmon is already installed and its configuration logs network connections. Filter Image ending in pqcprzm.exe. The destinations should match activity.json. Sysmon is a check, not a requirement of the install.
Get-NetFirewallRule -DisplayName 'PQC PRZM*' shows the template from section 6 when you have applied it.
12. Uninstall
Roll back any pilot script before you delete its state file. The state file is the only record of the previous values.
cd C:\PqcPrzm\pilot
.\Apply-PqcPrzmSmbBaseline.ps1 -Rollback -ConfirmEnforce ENFORCE
Repeat for each other script you actually applied.
On the management server:
Unregister-ScheduledTask -TaskName 'PQC PRZM preflight' -Confirm:$false
Remove-NetFirewallRule -DisplayName 'PQC PRZM*' -ErrorAction SilentlyContinue
On a domain controller, as a domain admin, after Uninstall-ADServiceAccount on the management server:
Uninstall-ADServiceAccount -Identity svc_pqcprzm
Remove-ADServiceAccount -Identity svc_pqcprzm -Confirm:$false
For a user account instead of a gMSA: remove it from Event Log Readers, then Disable-ADAccount or Remove-ADUser. Remove the Group Policy Preference that added the account. Set RemoteRegistry back to Disabled where you started it only for this test. Set 16 LDAP Interface Events back to 0. Leave the audit policies in place if you still want the window. Revert a lab-only SMB1 or NTLMv1 client (section 14) before you keep using that VM.
Delete C:\PqcPrzm when the reports are copied somewhere you intend to keep, or delete the --out folders if the lab data should not remain. Do not delete the KDS root key. Uninstall the .NET 10 runtime only if you installed it for a framework-dependent build and nothing else uses it:
winget uninstall Microsoft.DotNet.Runtime.10
13. Minimal lab
Three virtual machines on an isolated virtual switch are enough. One optional fourth machine is what makes blockers visible.
| VM | OS | Role |
|---|---|---|
| DC01 | Windows Server 2022 or 2025 | New forest lab.local. DNS for the lab. |
| MGMT | Windows Server 2022 or 2025, member | The management server. Not a domain controller. |
| CLIENT01 | Windows 11 | Domain joined. Ordinary user. |
| LEGACY, optional | An older Windows client, or any VM where you can enable the SMB1 client | The machine that still speaks SMB1 or NTLM. |
Promote DC01, join MGMT and CLIENT01, create labuser and a file share on MGMT or on DC01. Install the tool on MGMT. Point --dc at dc01.lab.local and --computer at mgmt.lab.local and client01.lab.local.
If you only have two VMs, the member server can be both MGMT and the file server. Keep the domain controller free of the tool.
A fourth VM is optional. Use it for section 14 and then turn the temporary client settings back off. Do not practice NTLMv1 or SMB1 on the management server.
Before the domain exists you can still walk the offline commands with samples\horizon-school.json and samples\pilot-smb.json.
14. Generate events so the report has something to find
Do this after section 7 is applied. Use lab passwords and clear the shell history afterwards. Revert every temporary client setting in the same session.
NTLM (current, NTLMv2)
Kerberos is used for a hostname. An IP address forces NTLM. From CLIENT01, against the file server:
klist purge
net use \\10.0.0.20\IPC$ /user:LAB\labuser *
Use the file server’s lab IP. You should get event 4624 on that server with package NTLM, event 8001 on the client, and 8003 or 8004 depending on which machine validated it. The report should not call NTLM restriction safe for that server.
LM or NTLMv1
On LEGACY only, then revert. Value 1 sends LM and NTLM. The lab default to restore on a current Windows client is 3.
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' -Name LmCompatibilityLevel -PropertyType DWord -Value 1 -Force
Repeat the net use \\<ip>\IPC$ from that VM, then:
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa' -Name LmCompatibilityLevel -PropertyType DWord -Value 3 -Force
4624 on the server should show LM or NTLMv1. NTLM-001 is Blocked for that computer. Level 5 in the script would break that logon. Do not enforce it.
SMB1
On the file server, section 7’s audit is on. On LEGACY:
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -NoRestart
Set-SmbClientConfiguration -EnableSMB2Protocol $false -Force
net use \\fs01.lab.local\share
Set-SmbClientConfiguration -EnableSMB2Protocol $true -Force
Event 3000 on the file server, channel Microsoft-Windows-SMBServer/Audit, names the client. SMB1 server disable is Blocked for that file server. The SMB1 client setting on other computers stays Unknown unless you separately audited outbound SMB1. The generated script should not disable mrxsmb10 from the server event alone.
Unsigned LDAP
On the domain controller, signing requirements stay at None for this test, and 16 LDAP Interface Events is 2. From CLIENT01 in Windows PowerShell 5.1 (this is the .NET Framework assembly, not the PQC PRZM process):
$entry = New-Object System.DirectoryServices.DirectoryEntry(
'LDAP://dc01.lab.local/DC=lab,DC=local', 'labuser@lab.local', 'LabPassword', 0)
$null = $entry.Name
Authentication type 0 is a simple bind. Event 2889 in the Directory Service log should name the client. LDAP signing is then Blocked, not safe to require.
Channel binding
Set Domain controller: LDAP server channel binding token requirements to When supported before this test. Never will not write 3039.
A current Windows client often sends the token, so ldp.exe on Windows 11 may produce no 3039. A client that does not send one will. From a Linux VM on the lab switch:
ldapsearch -H ldaps://dc01.lab.local:636 -D 'labuser@lab.local' -w 'LabPassword' -b 'DC=lab,DC=local' '(objectClass=*)' dn
Event 3039 should name that client. The report stays Blocked for channel binding until that client is gone and a later window is empty. A DC left at Never stays Unknown even when 3039 is empty.
RC4 Kerberos
On the domain controller:
New-ADUser -Name rc4user -SamAccountName rc4user -AccountPassword (Read-Host -AsSecureString) -Enabled $true
Set-ADUser rc4user -KerberosEncryptionType RC4
From CLIENT01:
klist purge
runas /user:LAB\rc4user cmd
Security event 4768 on the domain controller should show ticket encryption type 0x17. Kerberos RC4 is then a finding. Disable or delete rc4user when you have seen it in the report.
Collect again with the same collect line as section 8. In the HTML report, the blockers should name labuser, the SMB1 client, the LDAP client, or rc4user. Hosts those events did not touch can still be SafeToEnforce. That split is what the pilot in section 10 is for: one computer the log cleared, not the computer that just failed.