Install-NdesServer

4.3

This script installs and configures the Network Device Enrollment Service (NDES) role on Windows Server to support the Microsoft Intune Certificate Connector. It also configures the server to use a specific TLS certificate and enrollment certificate template for NDES.

In addition, this script performs several post-installation tasks to ensure the NDES service is prop
This script installs and configures the Network Device Enrollment Service (NDES) role on Windows Server to support the Microsoft Intune Certificate Connector. It also configures the server to use a specific TLS certificate and enrollment certificate template for NDES.

In addition, this script performs several post-installation tasks to ensure the NDES service is properly configured, optimized, and secured.

As part of post-installation hardening, permissions on the HKLM\SOFTWARE\Microsoft\Cryptography\MSCEP registry key are restricted to SYSTEM, Administrators, and the NDES service account, and auditing of configuration changes to this key is enabled (Security log events require the 'Audit Registry' subcategory to be enabled via Group Policy). If the Microsoft Intune Certificate Connector service runs as a custom account instead of SYSTEM, grant that account read access to this registry key manually. Note that changing the SCEP application pool identity after installation will cause NDES to fail until the registry key permissions are updated.

In addition, IIS is hardened by removing the NDES administration page (mscep_admin) IIS application and its orphaned configuration location, adding a request filtering hidden segment to block requests to the administration page path, and disabling Windows authentication (anonymous only) for the Default Web Site and the SCEP application. Because Windows authentication is disabled for the entire site, the server must be dedicated to NDES and must not host other IIS applications that require authentication.

IMPORTANT NOTE: This script is for configuring NDES to support the Microsoft Intune Certificate Connector. Settings configured by this script will not work with other deployment scenarios.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Install-NdesServer

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Copyright (C) 2025-2026 Richard M. Hicks Consulting, Inc. All Rights Reserved.

Package Details

Author(s)

  • Richard Hicks

Tags

NDES SCEP Intune PKI ADCS Certificate Microsoft Windows

Functions

Grant-LogOnAsService

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
4.3 (current version) 6 8/15/2026
4.2 9 8/12/2026
4.1 4 8/12/2026
4.0 6 8/11/2026
3.0 14 7/3/2026
2.0.3 25 5/28/2026
2.0.2 7 5/28/2026
2.0.1 7 5/25/2026
2.0.0 7 5/22/2026
1.7.1 18 3/20/2026
1.7 9 3/18/2026
1.6.5 10 3/5/2026
1.6.4 19 12/27/2025
1.6.3 26 8/22/2025
1.6.2 54 12/26/2024
1.6.1 7 12/26/2024
1.6 9 12/26/2024
1.5 32 11/15/2024
1.4.1 28 9/9/2024
1.4 9 9/9/2024
1.3.13 12 8/24/2024
1.3.12 9 8/23/2024
1.3.11 7 8/21/2024
1.3.9 18 5/17/2024
Show more