Forum Discussion
Deleting RegistryKeys on Clients via Intune
Hi GuelenToker i can confirm to you that the script works through Intune
the only thing you need to set in de script is:
reg delete "HKEY_CLASSES_ROOT\ms-msdt" /f
Intune runs thorugh system account in de computers and it also gonna take care of the powershell execution policy so that is not needed.
putting the commanbd abouve on a ps script worked just fine in our Intune.
side note:
you wont see that it worked until the computers in the group you deploy to are restarted.
good luck.
- GuelenTokerJun 09, 2022Copper ContributorI modified the script and did the reboot. Although I still receive error in Intune, the key is deleted. DiazAlain . We tested similar steps as in the link you provided and now it is ok DineshCR Thanks both for the help:) - DiazAlainJun 09, 2022Copper ContributorWhat DineshCR sent is also a good approach i couldn't find earlier
 but i just wonder to what kind of group where you assigning ? was a device or a user group.
 super that it worked at last.- GuelenTokerJun 09, 2022Copper ContributorI chose all devices , I have anyway 3 Windows Clients on VM on my test tenant.
 
 
- DineshCRJun 08, 2022Copper ContributorGuelenToker this is also a good read and it worked for me https://cloudinfra.net/how-to-fix-cve-2022-30190-using-microsoft-intune/