Hi,
I get an Access denied error when trying importing a certificate.
PS C:\Deploy\Licenses> Import-Certificate -FilePath "C:\Deploy\Licenses\Certificates\somecertificate.cer" -CertStoreLocation Cert:\CurrentUser\CA
Import-Certificate : Access is denied. 0x80070005 (WIN32: 5 ERROR_ACCESS_DENIED)
At line:1 char:1
+ Import-Certificate -FilePath "C:\Deploy\Licenses\Certificates\Thawte crossca.cer ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Certificate], Exception
+ FullyQualifiedErrorId : System.Exception,Microsoft.CertificateServices.Commands.ImportCertificateCommand
I start the powershell prompt with Run as different user and key in the user credentials. The user is Administrator on the box, UAC is disabled and ExecutionPolicy is set to Unrestricted. The prompt includes Administrator so i guess the prompt is elevated.
What else needs to be set to provide the user appropriate access?
Thanks