Forum Discussion
Deleting RegistryKeys on Clients via Intune
Dear All,
Because of the vulnerability mentioned in the below link, I am trying to delete the relevant registry key on all clients via Intune:
I have tried to do this via a powershell script as suggested in the below link, but tests failed:
https://cloudbyte.nl/change-or-edit-registry-on-windows-10-device-from-intune-endpoint-manger/
The script looks like this:
I am not very much experienced with Intune, so I am not able to troubleshoot this.
Would anyone have some advice?
Many thanks in advance.
Gülen
- DiazAlainCopper Contributor
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.
- GuelenTokerCopper ContributorThanks very much I will try this out:)
- DineshCRCopper Contributor
GuelenToker this is also a good read and it worked for me
https://cloudinfra.net/how-to-fix-cve-2022-30190-using-microsoft-intune/
- DiazAlainCopper Contributor
GuelenToker We have the same issue i tried something if it works i'll leet u know 😉