We are developing a powershell script for our employes, which among many things installs some certificates on their computer. One user got an error.
Further debugging leads me to belive that it is Resolve-CIdentityName -Name $Identity that is the problem
Command
$certPath = ...
$identity = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
Grant-CPermission -Identity $identity -Permission "ReadData" -Path $certPath

More images from testing on the failing users computer



Environment
- Windows 11
- Surface Pro
- PSVersion 5.1.22621.963