![]() ![]() $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. (Note: %User Temp% is the current user's Temp folder, which is usually C:\Documents and Settings\\AppData\Local on Windows Vista, 7, 8, 8.1, 2008(64-bit), 2012(64-bit) and 10(64-bit).The script is fairly basic, as you would expect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |