Get-PendingRequest Additional Properties

Feb 26, 2014 at 7:37 PM
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 later on.

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?
Feb 26, 2014 at 7:39 PM
put property name in quotes:
$attribs = $varRequests."Request.RequestAttributes"
Marked as answer by JWCNYC on 2/26/2014 at 1:13 PM
Feb 26, 2014 at 8:13 PM
Duh. I knew it was something simple.
Thanks a lot!