![]() ![]() In this post I’ll show how to create the PowerShell script, how to assign it by using Microsoft Intune and the end result in Google Chrome. This time I’m going for a small PowerShell script that will create a registry key and value. That’s why I’m going a different road this time. It actually might be a bit complicated for a simple configuration. However, the latter is always the easiest method. About a year ago I showed that the extension is required when using conditional access and I also showed earlier that it’s possible to use ADMX ingestion to configure Google Chrome. You can also read here for additional info.This week is all about simply automatically installing the Windows 10 Accounts extension for Google Chrome. It will work even if IE Enhanced Security is turned on, thus making it very useful for Windows Server brand-new installations when IE will prevent you from downloading Chrome. Well, technically it isn't an one-liner, but it works like it is. You can "silently install" Google Chrome on any modern Windows OS with the following Powershell one-liner: $LocalTempDir = $env:TEMP $ChromeInstaller = "ChromeInstaller.exe" (new-object ).DownloadFile('', "$LocalTempDir\$ChromeInstaller") & "$LocalTempDir\$ChromeInstaller" /silent /install $Process2Monitor = "ChromeInstaller" Do Until (!$ProcessesFound) $("Authorization", "Basic " + $credentialsB64) Ĭ:\temp\chrome_installer.exe /silent /install $credentialsB64 = ::ToBase64String($credentialsB64) # our curl command, with basic authentication if $credentials provided C:\temp is an existing directory that you can access (or just change your $filePath).ensure you are running PowerShell in Administrator mode.The code will call Get-Url and silently execute chrome_installer.exe.Create a ps1, psm1 or simply copy and paste and execute this code block in PowerShell. ![]() If you need basic auth, I've provided parameters for that too. If only PowerShell 2.0 had a native one-line curl.įor simplicity, I created my own, which takes a url and downloads the content. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |