Take a look at this :

http://technet.microsoft.com/en-us/library/hh848365.aspx

http://gallery.technet.microsoft.com/scriptcenter/Setup-Certification-bd2aff3e