SCCM - Packaging a Chrome Extension for distribution via PowerShell

 


You can install a Google Chrome Extension using PowerShell and SCCM, by just adding a simple registry entry.

Look up the Extension ID from the store. In this case we will be using the Windows 10 Accounts add-in that allows single sign on to work with Azure AD.

https://chrome.google.com/webstore/detail/windows-10-accounts/ppnbnpeolgkicgegkbkbjmhlideopiji?hl=en

Then, we will package it into a PowerShell script that can be pushed out to machines.

$registryPath = "HKLM:\\Software\Policies\Google\Chrome\ExtensionInstallForcelist\"
$key = "1"
$currentRegPath = $registryPath + $key
New-Item -Path $currentRegPath -Force | out-Null
Set-ItemProperty -Path 'HKLM:\Software\Policies\Google\Chrome\ExtensionInstallForcelist' -Name '1' -Value 'ppnbnpeolgkicgegkbkbjmhlideopiji;https://clients2.google.com/service/update2/crx' -Type String


This can also be accomplished via group policy using the Google Chrome ADMX add-in.



Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.