Intune icon indicating copy to clipboard operation
Intune copied to clipboard

$envelopedCms.Decrypt($certCollection) error

Open mikaelfun opened this issue 5 years ago • 2 comments

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

mikaelfun avatar Oct 10 '20 14:10 mikaelfun

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...

okieselbach avatar Jan 12 '21 17:01 okieselbach

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

elliot-huffman avatar Sep 29 '22 05:09 elliot-huffman