My 2008 powershell script is not working correctly in 2012r2. The command
New-SelfSignedCertificate -DnsName test.testdomain.com -NotBefore [datetime]::now.AddYears(10)
comes back with:
New-SelfSignedCertificate : A parameter cannot be found that matches parameter name 'NotBefore'
I ran this ok in Windows 10 as a test...
I do not (cannot) download an old version of selfssl to perform this (yes I know about this). It needs to be done in powershell or I'll have to look at gemerating these certs in openssl on another box.
Anyone know what is going on with this?