How do you Query Certificate Authority?

I learned how to query Certificate Authority to get list of generated certificates.  I need to grab all generated machine certificates (Cert Template: Computer/Machine) to figure out which machine got the certificate.

The following command list all machine certificates generated to all domain machines. 

certutil -view -config "<FQDN of Certificate Authority Server>\<Certificate Authority Name>" -restrict "Certificate Template=Machine" /out "Certificate template,issued Common Name" > CertList.txt

you need provide FQDN of the Certificate Authority server name and Certificate Authority name. To find the name of your certificate authority, open the Certificate Authority console and see the root node name.