Skip to content

Commit e9b790c

Browse files
authored
Update chrome-edge-deployment-instructions.md
Added extension pinning var, enabled by default. Signed-off-by: Adam <adam@tucu.ca>
1 parent fb7ea84 commit e9b790c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/deployment/chrome-edge-deployment-instructions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ $edgeExtensionSettingsKey = "HKLM:\SOFTWARE\Policies\Microsoft\Edge\ExtensionSet
144144
$showNotifications = 1 # 0 = Unchecked, 1 = Checked (Enabled); default is 1; This will set the "Show Notifications" option in the extension settings.
145145
$enableValidPageBadge = 0 # 0 = Unchecked, 1 = Checked (Enabled); default is 0; This will set the "Show Valid Page Badge" option in the extension settings.
146146
$enablePageBlocking = 1 # 0 = Unchecked, 1 = Checked (Enabled); default is 1; This will set the "Enable Page Blocking" option in the extension settings.
147+
$forceToolbarPin = 1 # 0 = Not pinned, 1 = Force pinned to toolbar; default is 1
147148
$enableCippReporting = 0 # 0 = Unchecked, 1 = Checked (Enabled); default is 1; This will set the "Enable CIPP Reporting" option in the extension settings.
148149
$cippServerUrl = "" # This will set the "CIPP Server URL" option in the extension settings; default is blank; if you set $enableCippReporting to 1, you must set this to a valid URL.
149150
$cippTenantId = "" # This will set the "Tenant ID/Domain" option in the extension settings; default is blank; if you set $enableCippReporting to 1, you must set this to a valid Tenant ID.
@@ -211,6 +212,15 @@ function Configure-ExtensionSettings {
211212
New-ItemProperty -Path $ExtensionSettingsKey -Name "installation_mode" -PropertyType String -Value $installationMode -Force | Out-Null
212213
New-ItemProperty -Path $ExtensionSettingsKey -Name "update_url" -PropertyType String -Value $UpdateUrl -Force | Out-Null
213214
215+
# Add toolbar pinning if enabled
216+
if ($forceToolbarPin -eq 1) {
217+
if ($ExtensionId -eq $edgeExtensionId) {
218+
New-ItemProperty -Path $ExtensionSettingsKey -Name "toolbar_state" -PropertyType String -Value "force_shown" -Force | Out-Null
219+
} elseif ($ExtensionId -eq $chromeExtensionId) {
220+
New-ItemProperty -Path $ExtensionSettingsKey -Name "toolbar_pin" -PropertyType String -Value "force_pinned" -Force | Out-Null
221+
}
222+
}
223+
214224
Write-Output "Configured extension settings for $ExtensionId"
215225
}
216226

0 commit comments

Comments
 (0)