![]() New-ItemProperty HKLM:\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist -PropertyType String -Name $newExtensionId -Value $extensionId $newExtensionId = $extensionsList.name 1 Write-Information "Extension Already Exists" $extensionCheck = $extensionsList | Where-Object Write-Information "Extension List Item : $($extensionObj.name) / $($extensionObj.value)" $extensionsList.add($extensionObj) | Out-Null $install = Get-ItemProperty $regKey -name $number -ErrorAction Stop ![]() Write-Information "Created Reg Key $regKey" $regKey = "HKLM:\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" Write-Information "ExtensionID = $extensionID" It looks for the base registry key for Chrome, creates it if it is missing, enumerates any already deployed extensions, and then adds the new one at the end of the list. The script is fairly basic, as you would expect.
0 Comments
Leave a Reply. |