@MF13tch said in Scripted uninstallation:

Hi -
I work in Education.
We have a fleet of machines where a lot of the devices have ended up with Opera / Opera GX installed on them (basically because the kids at some point had admin rights - or didn't even need admin rights to install it) and we really don't want it as it violates many of the school internet safety policies.
Can anyone provide a comprehensive guide on remotely uninstalling opera on Windows devices using powershell/batch scripting.

To address the issue of uninstalling Opera and Opera GX remotely from a fleet of machines in an educational environment, you can use a combination of PowerShell and batch scripting to automate the process. First, you’ll need to identify the software’s uninstall strings. You can do this by querying the registry using PowerShell to locate the GUID associated with Opera or Opera GX. Once you have the correct uninstall strings, you can create a script that loops through the devices to uninstall the browsers. You may also want to use Group Policy to restrict users from installing software in the future, ensuring that only authorized applications are added to the devices. To perform this task remotely, you can leverage tools such as PSExec or PowerShell Remoting to deploy the uninstall script across multiple machines. By automating this process, you can ensure compliance with school internet safety policies and maintain better control over the software installed on your network.