Forum Discussion
Credit12
Nov 28, 2024Copper Contributor
Install cert as admin for special user via windows admin center
Hi, I try to install a cert, a website uses to auth the visit. That means I have to install it local and manually by logging into the user acc and install it under "CurrentUser\My". If I install it ...
micheleariis
Steel Contributor
Hi, in Windows Admin Center you cannot install certificates directly into another user's CurrentUser\My.
You can, however, use the PowerShell section to run a script that loads the user's log (NTUSER.DAT) and imports the certificate into its context.
Example Script:
$certPath = “C:\path\to\certificate.pfx”
$password = ConvertTo-SecureString -String “password” -AsPlainText -Force
$userProfile = “C:\Users\<UserName>”
reg load HKU\TempHive “$userProfile\NTUSER.DAT”
Import-PfxCertificate -FilePath $certPath -CertStoreLocation Cert:\HKU\TempHive\My -Password $password
reg unload HKU\TempHive
Credit12
Nov 29, 2024Copper Contributor
Sounds good, I'll try that next week :)
Do you also have a solution to delete the old expired cert? I think I can identify it via the fingerprint!?