To uninstall a program from Group Policy, have a look at:
https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/use-group-policy-to-install-software#remove-a-package
How to uninstall AnyDesk via GPO
Hi I have a requirement to uninstall the AnyDesk using GPO. I have created a .bat file with below command and added to the Startup script but it is now working. can anyone guide me how to troubleshoot or make correction in GPO: "C:\Program Files (x86)\AnyDesk\AnyDesk.exe" --remove is there anyway to execute this with elevated rights
2 answers
Sort by: Most helpful
-
Reza-Ameri 16,861 Reputation points
2024-02-13T22:26:31.6+00:00 -
Daisy Zhou 21,121 Reputation points Microsoft Vendor
2024-02-20T07:26:12.91+00:00 Hello Sajid Ali Shah, Thank you for posting in Q&A forum.
Because you did not install AnyDesk via GPO, you can not uninstall it via GPO.
Based on the description "I have created a .bat file with below command and added to the Startup script but it is now working.", did you mean the startup script not working? If so, you can test the script on one machine to check if the script itself works?
If the script itself did not work, you may need to check or rewrite the script itself.
If the script itself did work, then you can deploy the startup script via GPO and apply this startup script setting to all the machines with AnyDesk.
Meanwhile, if the machines with AnyDesk are not too many, you can also uninstall them amnually on machine one by one. I hope the information above is helpful. If you have any questions or concerns, please feel free to let us know. Best Regards, Daisy Zhou
If the Answer is helpful, please click "Accept Answer" and upvote it.