This post includes a PowerShell Get-ChromeExtension script to list installed extensions on the local or remote computer.
Browser extensions are supposed to be curated and vetted, but there have been many examples of malware. If you don’t already have control of extensions through an allow or blocklist, the first step is to find out what is in-use.
The code below is a PowerShell function to get the installed Google Chrome browser extensions from a local or remote Windows computer.
Chrome Browser Extensions install into the user profile and do not appear in the Add/Remove Programs list.
Chrome Extensions are a challenge to audit due to the way they install and lack of enumeration options. The PowerShell script below gets the installed extensions using the following method:
- Get the extension IDs from the folders names under
%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Extensions
- Lookup the extension name on the Chrome Web Store using the extension ID
- Get the extension version from the
manifest.json
file in the extension folder
Example script output
C:\> Get-ChromeExtension | Select Name,Version,Description | ft -AutoSize
Name Version Description
---- ------- -----------
Docs 0.10 Create and edit documents
Google Drive 14.1 Google Drive: create, share and keep all your stuff in one place.
YouTube 4.2.8 The official YouTube website
Sheets 1.2 Create and edit spreadsheets
Google Docs Offline 1.4 Get things done offline with the Google Docs family of products.
Google Wallet 1.0.0.4
Gmail 8.1 Fast, searchable email with less spam.
Chrome Cast 6618.312.0.2
Slides 0.10 Create and edit presentations
Docs 0.10 Create and edit documents
Google Drive 14.2 Google Drive: create, share and keep all your stuff in one place.
YouTube 4.2.8 The official YouTube website
OneTab 1.18 Save up to 95% memory and reduce tab clutter
uBlock Origin 1.20.0 Finally, an efficient blocker. Easy on CPU and memory.
Dark Reader 4.7.12 Dark mode for every website. Take care of your eyes, use dark theme for night and daily browsing.
Share link via email 3.2.1 Adds a button and context menu item to send the page URL or a link URL via email
Sheets 1.2 Create and edit spreadsheets
Google Docs Offline 1.7 Get things done offline with the Google Docs family of products.
Pinterest Save Button 4.0.82 Save the things you find on the Web.
Google Wallet 1.0.0.4
ColorPick Eyedropper 0.0.2.29 An eye-dropper & color-picker tool that allows you to select color values from webpages.
Gmail 8.2 Fast, searchable email with less spam.
Chrome Cast 7519.422.0.3
PowerShell Script
Get-ChromeExtension.ps1 script:
This article was originally posted on Write-Verbose.com