Powershell debugging for command by / On January 22, 2020 / In Computer science 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