Hello,
I’m trying to find a way to remove Chrome Extensions. I have found this script but in Automox I just get a command timeout when it runs:
Remove or block Chrome extensions with PowerShell – 4sysops
Anyone have any ideas?
Cheers,
Mark
Hello,
I’m trying to find a way to remove Chrome Extensions. I have found this script but in Automox I just get a command timeout when it runs:
Remove or block Chrome extensions with PowerShell – 4sysops
Anyone have any ideas?
Cheers,
Mark
Hi Mark,
Chrome extension removal via PowerShell can be tricky, especially in managed environments where timeouts and profile corruption are common. I’ve been down this road myself.
Based on web searching and testing on my end, the Google Chrome Enterprise documentation available at their website goes into specifics for how to use the 4Syops link you gave us. Below are a couple of Google provided resources followed by my suggestions:
- https://support.google.com/chrome/a/answer/7532015?hl=en&ref_topic=9023098&sjid=7092383473352488300-NA
- https://support.google.com/chrome/a/answer/9296680?hl=en.
As a prerequisite, I would utilize the adm/admx files to either create a GPO or to manage settings via an MDM. While, it will be possible to utilize Automox to import these, you want your MDM to enforce those specific settings. To perform this with Automox, you can ingest the adm/admx files into a required software policy as a payload to configure Google Chrome to maintain specific settings.
Additionally, the best way to go after removal would be to craft a custom script and to drop it into a worklet with the following functions:
Required
detect extensions with "name" fields containing "theme", or by categories (extensive code needed), safer to rip out themes instead
Optional
purge folders like IndexedDB, ScriptCache, Extension Scripts, etc.
Code considerations
Let us know if that’s what you were looking for and which path you may need guidance with.
Thanks,
Angelo
So while it isnt a app driven solution, I have a GPO that has Allowed extensions. Once enforce anything NOT on that list is nuked pretty quick. Sadly it is manual as you need to know the ID Chrome assigns to each one you want to allow. But it works! I have what it looks like in chrome below if interested =) The formatting changes here, this would be a one liner in the GPO.
{"*":{"installation_mode":"blocked","blocked_install_message":"Please contact the help desk if you think an extension should be unblocked."},"efaidnbmnnnibpcajpcglclefindmkaj":{"installation_mode":"allowed"},"mfpddejbpnbjkjoaicfedaljnfeollkh":{"installation_mode":"allowed"},"pnlccmojcmeohlpggmfnbbiapkmbliob":{"installation_mode":"allowed"},"fdjamakpfbbddfjaooikfcpapjohcfmg":{"installation_mode":"allowed"},"fmkadmapgofadopljbjfkapdkoienihi":{"installation_mode":"allowed"},"hdokiejnpimakedhajhdlcegeplioahd":{"installation_mode":"allowed"}}
Yes, GPOs management with ADM/ADMX templates also works well for creating restrictions for specific and already know Chrome app IDs. Nice one!
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.