I'm sure that I need to do something very simple to make this work, but I can't figure it out. If I use the Get-PendingRequest cmdlet and use -Property to add Request.RequestAttributes to the object that is returned, I am unable to reference the property
For example, if I run this command:
$varRequests = Get-CertificationAuthority -Name "My CA" | Get-PendingRequest -Property "Request.requestattributes" -Filter "CertificateTemplate -eq MyTemplate"
Lets assume $varRequests contains a single object. If I then try to reference $varRequests.Request.CommonName or $varRequests.Request.RequestAttributes, I get nothing.
Any ideas on what I'm doing wrong here?