1) make sure if there are no more PSPKI module folders in the "env:psmodulepath"
2) you are specifying invalid template name. The command expects template common name and not display name. I guess, in your case the command should be:
Submit-CertificateRequest –CA (Get-CertificationAuthority)-Path C:\Temp\MyCSR.CSR –Attribute "CertificateTemplate:CodeSigning"
this comman should work.
2) you are specifying invalid template name. The command expects template common name and not display name. I guess, in your case the command should be:
Submit-CertificateRequest –CA (Get-CertificationAuthority)-Path C:\Temp\MyCSR.CSR –Attribute "CertificateTemplate:CodeSigning"
this comman should work.