Some parts of this article have been written with AI. Be aware that AI can make mistakes.
Applies to : PowerDocs for Windows

Enforce Document Classification via Group Policy (GPO)

This guide provides step-by-step instructions for Windows System Administrators on how to configure and deploy an enterprise Group Policy (GPO) to make security classification (C0, C1, C2, C3) mandatory in PowerDocs on Windows client workstations.


1. Overview

To comply with corporate information security standards and document governance requirements, PowerDocs includes an enterprise service (EntrepriseGpoService) that reads Group Policy settings directly from the Windows Registry.

When the classification enforcement policy is active:

  • In the Document Plan Editor (DocumentPlanEditorWindow):
    • A red asterisk (*) is displayed next to the Classification label.
    • An explanatory tooltip appears on the field: "Required by enterprise policy (GPO)".
    • The (None) option in the classification dropdown is disabled.
    • The user cannot save the document plan (plan.yml) or preview the generated PDF without selecting a valid classification level.
  • Validation Enforcement: If an unclassified document is saved or previewed, PowerDocs intercepts the action, displays a warning dialog requiring classification selection, and sets focus to the dropdown.

2. Windows Registry Specification

PowerDocs inspects the Windows Registry when initializing the editor and before performing any save operation.

Parameter Specification
Supported Hives HKEY_LOCAL_MACHINE (HKLM - Machine policy, priority)
HKEY_CURRENT_USER (HKCU - User policy fallback)
Primary Registry Path SOFTWARE\Policies\Coho\PowerDocs
Secondary Fallback Path SOFTWARE\Policies\PowerDocs
Value Name RequireClassification
Value Type REG_DWORD
Value Data 1 = Enforce mandatory classification
0 = Disabled (default application behavior)

Note

Per standard Windows Enterprise Policy guidelines (see Microsoft Learn: Group Policy processing), settings under HKEY_LOCAL_MACHINE\SOFTWARE\Policies take precedence over user-level configurations. PowerDocs also recognizes the presence of a registry subkey named RequireClassification.


3. Deployment Methods

Method A: Group Policy Management Console (GPMC) — Group Policy Preferences

Using Group Policy Preferences (GPP) Registry Extension is the standard and recommended way to push registry keys in an Active Directory Domain Services (AD DS) environment.

Tip

For more information on configuring Group Policy Preferences Registry items, see Microsoft Learn: Configure a Registry Item.

  1. Open the Group Policy Management Console (gpmc.msc) on your Domain Controller or management workstation.
  2. Create or edit an existing GPO linked to the Organizational Unit (OU) containing your target client computers.
  3. Navigate to:
    • Computer Configuration (recommended) > Preferences > Windows Settings > Registry.
  4. Right-click in the right pane, select New > Registry Item, and configure the following parameters:
    • Action: Update (or Create)
    • Hive: HKEY_LOCAL_MACHINE
    • Key Path: SOFTWARE\Policies\Coho\PowerDocs
    • Value name: RequireClassification
    • Value type: REG_DWORD
    • Value data: 1 (Base: Decimal)
  5. Click Apply and OK.

Method B: PowerShell Script (Startup Script, Remote Execution, or RMM)

For automated scripted deployments or standalone machines:

# Target registry path for PowerDocs enterprise policies
$RegistryPath = "HKLM:\SOFTWARE\Policies\Coho\PowerDocs"

# Ensure the parent key path exists
if (-not (Test-Path -Path $RegistryPath)) {
    New-Item -Path $RegistryPath -Force | Out-Null
}

# Set RequireClassification to 1 (DWORD)
Set-ItemProperty -Path $RegistryPath -Name "RequireClassification" -Value 1 -Type DWord -Force

Write-Output "PowerDocs GPO policy 'RequireClassification' successfully configured at $RegistryPath."

Method C: Registration File (.reg)

For testing or manual application on a local workstation:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Coho\PowerDocs]
"RequireClassification" = dword:00000001

Save this content to PowerDocs_EnforceClassification.reg and run as Administrator.


Method D: Microsoft Intune (Remediations / Proactive Remediations)

In modern cloud-managed environments (Microsoft Entra ID / Intune), you can deploy this policy using Remediations (formerly Proactive Remediations).

Tip

For reference on configuring Intune scripts and remediation packages, see Microsoft Learn: Remediations in Microsoft Intune.

1. Detection Script (detect-powerdocs-gpo.ps1)

$path = "HKLM:\SOFTWARE\Policies\Coho\PowerDocs"
$name = "RequireClassification"

if (Test-Path $path) {
    $value = (Get-ItemProperty -Path $path -Name $name -ErrorAction SilentlyContinue).$name
    if ($value -eq 1) {
        Write-Output "PowerDocs classification requirement is properly enforced."
        exit 0
    }
}
Write-Output "PowerDocs classification policy is missing or not set to 1."
exit 1

2. Remediation Script (remediate-powerdocs-gpo.ps1)

$path = "HKLM:\SOFTWARE\Policies\Coho\PowerDocs"
$name = "RequireClassification"

if (-not (Test-Path $path)) {
    New-Item -Path $path -Force | Out-Null
}
Set-ItemProperty -Path $path -Name $name -Value 1 -Type DWord -Force
exit 0

4. Classification Levels Reference

When the policy is active, users must choose one of the following classification levels:

Code Display Name Usage Guidance
C0 C0 - Public Information approved for public disclosure without restriction.
C1 C1 - Internal Standard company data for internal use and authorized partners only.
C2 C2 - Confidential Sensitive business information, intellectual property, or personal data.
C3 C3 - Restricted High-impact critical business secrets, M&A data, or restricted compliance items.

The selected level is saved into plan.yml and automatically stamped onto each exported PDF page (header, footer, and watermark layers).


5. Verification & Troubleshooting

Client-Side Verification

  1. Force Group Policy update: Run from an elevated Command Prompt or PowerShell:

    gpupdate /force
    

    ( Reference: Microsoft Learn: gpupdate)

  2. Verify the policy application using gpresult:

    gpresult /r
    

    Or generate an HTML diagnostic report:

    gpresult /h C:\Temp\GPOReport.html
    

    ( Reference: Microsoft Learn: gpresult)

  3. Check the Registry directly via PowerShell:

    Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Coho\PowerDocs" -Name "RequireClassification"
    

    Expected output:

    RequireClassification : 1
    
  4. Test in PowerDocs:

    • Open or create a document plan (plan.yml).
    • In the Document Plan Editor, verify that:
      • A red asterisk * appears beside the Classification label.
      • The dropdown item (None) is disabled.
      • Attempting to save without selecting a level displays an error dialog and cancels the save.