microsoft / Intune-Resource-Access

Sample code and scripts for interfacing with the Intune Resource Access APIs.
MIT License
54 stars 58 forks source link

Add-IntuneKspKey "Microsoft Software Key Storage Provider" "PFXEncryptionKey" Error #149

Open 0xab3d opened 8 months ago

0xab3d commented 8 months ago

I am following the script, I've built the app, imported the module and ran the command Add-IntuneKspKey but getting the following error. I've tried this on two machines.

image

WfWI-IT commented 6 months ago

You are not alone. Getting this same issue on multiple machines as well. Hopefully someone can figure this out.

"Add-IntuneKspKey: Could not load type 'System.Security.AccessControl.CryptoKeySecurity' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral,"

0xab3d commented 6 months ago

Are you downloading the zip file or using git clone?

jjhester commented 1 week ago

I'm having exactly the same issue.