Need this command in code format.
if and when type of statements. I do not need # statements to explain what is going on. I need the actual code.
PS C:>Set-CertificateAutoEnrollmentPolicy -PolicyState Enabled -EnableMyStoreManagement -EnableTemplateCheck -Context User