Microsoft MVP, Vadims Podans, has written and posted a Windows PowerShell script that can be used to setup a certification authority (CA). He posted his Windows PowerShell Script on the TechNet Script Repository as Setup Certification Authority with PowerShell posted at http://gallery.technet.microsoft.com/scriptcenter/Setup-Certification-bd2aff3e.