Install-AdcsEnrollmentPolicyWebService Ignores -WhatIf Parameter
The following PowerShell command should NOT configure the Enrollment Policy Web Service, because it has the -WhatIf parameter:
Install-AdcsEnrollmentPolicyWebService -AuthenticationType Certificate -Force -SSLCertThumbprint 'f0262dcf287f3e250d1760508c4ca87946006e1e' -KeyBasedRenewal:$false -WhatIf
However, it does configure it. The same goes for Uninstall-AdcsEnrollmentPolicyWebService
This is bad practice for PowerShell cmdlets. It is also preventing us creating a DSC resource to configure this feature.
support wala commented
Ignore-scripts should only ignore lifecycle scripts of package being installed. Thanks for sharing us.
Daniel Scott-Raynsford commented
Here is the issue in the Microsoft DSC Resource Kit GitHub repo: https://github.com/PowerShell/ActiveDirectoryCSDsc/issues/43#issuecomment-392248745