One example of creating a Root CA
From MyWiki
Install-AdcsCertificationAuthority -CAType EnterpriseRootCA -CryptoProviderName “RSA# Microsoft Software Key Storage Pr ovider” -KeyLength 2048 -HashAlgorithmName SHA1 -ValidityPeriod Years -ValidityPeriodUnits 3 -CADistinguishedNameSuffix CN=securebits-SRV12 -Root-CA,DC=securebits,DC=in -DatabaseDirectory c:\CertDB -LogDirectory c:\CertLog