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:
https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/
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
11 Replies
- DiazAlainCopper ContributorHi 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:)- GuelenTokerCopper Contributor
 
 
- DiazAlainCopper ContributorGuelenToker We have the same issue i tried something if it works i'll leet u know 😉