How do I set AutoEnrollment properties for a GPO from a C# application

  • Thread starter Thread starter PippiLongstocking
  • Start date Start date
P

PippiLongstocking

Guest
I have a C# application that creates a GPO in a Server 2016 using the System.Management.Automation library and the AddCommand method. Now I want to set its autoenrollment properties. Manually I would do the following: Open Group Policy Manager Browse to my GPO, right-click and Edit In the Group Policy Management Editor I would browser to: Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Public Key Policies and double click on "Certificate Services Client - AutoyEnrollent". There I would change the Configuration Model to Enabled and then check the checkboxes "Renew expired Certificates" and "Update Certificates". I need to be able to do these steps program.

Continue reading...
 
Back
Top