translate the Request.StatusCode

Aug 27, 2014 at 7:13 PM
It's possible to translate the Request.StatusCode (from Get-FailedRequest) to it's corresponding text "The permissions on the certificate template do not allow the current user to enroll for this type of certificate. 0x80094012 (-2146877422)"? And how?

RequestID : 411
Request.StatusCode : -2146877422
Request.DispositionMessage : Denied by Policy Module
Request.SubmittedWhen : 15.07.2014 10:58:53
Request.CommonName : cname
CertificateTemplate :1.21.8.14124815.13763859.4670593.6739376.12932320.234.5355479.1536
RowId : 411
ConfigString : SubCA
Table : Request
Coordinator
Aug 27, 2014 at 7:19 PM
Yes, it is possible externally. In other words it is not done automatically. If you want to convert HRESULT statuses, you can use Get-ErrorMessage command from the module. Example:
PS C:\> Get-ErrorMessage -2146877422
The permissions on the certificate template do not allow the current user to enroll for this type of certificate.
PS C:\>