大网数据广告活动
域与目录服务

Install a policy module with the Network Device Enrollment Service in Windows Server

· 52CE 我爱测

Learn how to install, configure, and uninstall a policy module with the Network Device Enrollment Service.

Network Device Enrollment Service(NDES) for Active Directory Certificate Services support a policy module that provides extra security for the Simple Certificate Enrollment Protocol (SCEP). Using a policy module the NDES requires extra authentication to ensure that the certificate is issued to the right user.

This article covers how-to install and configure a policy module with the Network Device Enrollment Service (NDES).

Prerequisites

How to install and uninstall the policy module

Before you can install the policy module, you must first install and configure NDES, and verify that the service communicate successfully with an issuing certification authority.

If you have a software solution that includes the policy module, follow the installation and configuration instructions for the software rather than the instructions in this section. For example, Configuration Manager provides its own wizard, and the Configuration Manager Policy Module Setup wizard, to install and configure the policy module.

If there are no accompanying instructions, or you developed your own policy module, use the following steps.

Install and configure the policy module

  1. Copy the .dll file for the policy module onto the server that runs the NDES.

  2. Register the policy module by using the Regsvr32.exe command from an elevated command prompt.

    For example, if your policy module is named ndespol.dll, type Regsvr32 ndespol.dll and press ENTER.

  3. Run the following Windows PowerShell cmdlets to update the registry path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MSCEP:

    Invoke-Item -Path HKLM:\SOFTWARE\Microsoft\Cryptography\MSCEP\Modules
    

    This command creates the new \Modules key.

    New-ItemProperty HKLM:\SOFTWARE\Microsoft\Cryptography\MSCEP\Modules\ -Name Policy -PropertyType String -Value "NDESPolicy.OTA.1"
    

    This command specifies the policy module name, using NDESPolicy.OTA.1 as an example. Replace NDESPolicy.OTA.1 with the name of your own policy module.

  4. Restart Internet Information Services (IIS) by typing IISReset from an elevated command prompt.

NDES supports only one registered policy module. After you register it, it's always used with NDES. To remove the policy module, manually uninstall it by updating the registry and unregistering the policy module.

Important: Removing the NDES role service doesn't uninstall the policy module.

Uninstall the policy module

  1. Run the following Windows PowerShell cmdlet to remove the registry settings:

    Remove-Item -Path HKLM:\SOFTWARE\Microsoft\Cryptography\MSCEP\Modules -Recurse
    
  2. From an elevated command prompt, run the regsvr32.exe command with the /u option to unregister the policy module.

    For example, if the policy module name is ndespol.dll, type regsvr32 ndespol.dll /u and press ENTER.

Related content

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 03/27/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。