Problem:
Microsoft CA is set by default to maximum 2 years certificate validity . So you can’t create a template with a certificate valid more then 2 years, However, i needed a certificate wirh 10 years .
Solution:
To extend this for your own CA , edit the following registry key and restart the CA service.
KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CertSvc\Configuration\<CA Name>\ValidityPeriodUnits