I recently worked on a project where we needed to create a fully self configuring mounted wall display solution that could be zero touch deployed across the company. You can read more about the full solution in my upcoming blog post.
In this post I will highlight one piece of that solution: the Google Chrome Extension that can be configured with Windows Group Policy (GPO).
Preparing the Chrome Extension
Chrome Extensions need a policy schema.json and use the managed storage API for this to work. Unfortunately almost no chrome extension provides this. So I had to implement this myself in an existing open source extension. For the dashboard solution I forked the great chrome-tab-rotate extension from KevinSheedy and added the required schema and managed storage API code.
How to compile the Chrome Extension
You can find my fork here: https://github.com/Silthus/chrome-tab-rotate
- clone my fork
- run npm install and gulp
- open your favorite Chromium browser
- go to extensions and enable developer mode
- click on “Load unpacked” and select the “build” directory
The plugin is now loaded and ready to use. The last thing you need is the ID of the plugin. This ID will be different for everyone but will stay the same for subsequent builds. That is, if you use the build.pem created from your first build.
You can now use the chrome extension and configure it with your registry.
Configuring the Chrome Extension with GPOs
To make creating the GPO easier, I will first create the matching registry entry and use that inside the GPO.
Preparing the registry
Start and open the registry as administrator. Navigate to the following registry hive and create all keys that do not exist. Make sure to replace the ID with your own extension ID.
Inside this hive you can start creating items that match the extension policy. Open chrome://policy or schema.json to find out what properties your can set. In my case I wanted to set the source and url parameter. With those parameters the plugin will automatically load my config at startup.
Creating the GPO
Open gpmc.msc go to Computer Configuration -> Preferences -> Windows Settings -> Registry and select New -> Registry Wizard in the context menu.
Now choose the items created earlier and load them into the GPO.
Now you might be wondering how you will get the custom compiled extension onto your clients? Don’t worry, I got you covered in my next blog post where I will explain how to host and deploy custom extensions without uploading them to the store.