Programmatically trigger the autoenrollment process for the logged-on user

Assume the following scenario:

  • You write a script or an application that should trigger the autoenrollment process for the currently logged-on user.
  • You will find out that the scheduled task cannot be executed.
  • The error message reads:
The user account does not have permissions to run this task.

Continue reading "Programmatically trigger the autoenrollment process for the logged-on user"

SignTool installation without Windows Software Development Kit (SDK) installation

One way to perform code signatures is to use the SignTool command line tool. This is part of the Windows 10 Software Development Kit (SDK).

If you want to use the tool on a system without having to install Visual Studio or the Windows SDK, you can proceed as follows.

Continue reading "SignTool installation without Windows Software Development Kit (SDK) installation"

Create an exit module for the certification authority in C#

Microsoft Active Directory Certificate Services offers the possibility to develop your own policy and exit modules to extend the functionality of the certification authority.

Below are the steps necessary to create an exit module in C# using Visual Studio 2019. The exit module will write issued certificates to a configurable directory in the file system.

Continue reading "Create an exit module for the certification authority in C#"