okieselbach / Intune

Intune Scripts and Helpers.
463 stars 187 forks source link

$envelopedCms.Decrypt($certCollection) error #3

Open mikaelfun opened 4 years ago

mikaelfun commented 4 years ago

how can it decrypt a null certcollection. Stuck here. Please help.

okieselbach commented 3 years ago

Sorry totally missed your entry... This typically happens if you are not running this on a client joined to AAD/Intune. You have to run the script on the client where you downloaded the file. otherwise you will not have the certificate available. The MDM/Intune certificate is used for the decryption...

elliot-huffman commented 2 years ago

I have completely rebuilt the IntuneWin decrypter in PowerShell so that it doesn't need any external dependencies. I have also added a few extra features to it and more documentation.

Take a peek and tell me what you think:
https://github.com/elliot-huffman/Powershell-Doodads/blob/main/Apps/Endpoint%20Manager%20(Intune)/Unprotect-IntuneWin.ps1