

Write-Host "Disabling Autorun for all drives. Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name "DisableAutoplay" -Type DWord -Value 1 However, Chocolatey doesnt come preinstalled with Windows. Its a tool that helps install and uninstall apps using PowerShell or Command Prompt. Start-BitsTransfer -Source "" -Destination $( :: GetFolderPath ( "CommonApplicationData" ) ) Download a Browser Using Chocolatey Chocolatey is a third-party package manager that functions similarly to Windows winget and Ubuntus APT. Set-PSRepository -Name PSGallery -InstallationPolicy Trusted Install Google Chrome in Windows-like systems Ansible module winchocolatey How to install the latest Google Chrome Stable on a Windows-like workstation using the chocolatey.

Install-PackageProvider -Name NuGet -Force If you want to install Chrome, skip to the next method. Before you move forward with this method, note that Google Chrome is unavailable on the Microsoft Store. New-Item $PROFILE -Type file -Value $ProfileContents -ErrorAction 0 We explain how you can download a browser without using a browser in this guide. Import-Module ( Split-Path $PROFILE ) -Type Directory -ErrorAction 0 The following command is used to install Google Chrome with Chocolatey. $ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" Get-NetFirewallRule -DisplayGroup 'Core Networking Diagnostics' | Enable-NetFirewallRule To lean more about Ansible and Windows, visit the following blog series.# Add-Computer -DomainName test.local -OUPath "OU=Servers, OU=Klant, DC=test, DC=local" To update Google Chrome to the latest version, please visit the following post. The above code will install the latest Google Chrome version on the managed machines.įrom experience, the process will take around two to four minutes. It is when you know the software is fine and need to install in a pinch. From a security point of view, simply ignoring the checksums isn’t recommended. If it's a checksum error, tell it to ignore checksums. It is important to notice that you will need to install the Chocolatey package manager and core extension first before running this playbook as shown here. If you don't then you just need to answer the questions. The playbook below will use the Win_Chocolatey module to install Google Chrome. Chocolatey Package Managerįollowing on my last blog post about Chocolatey, we will build on that knowledge and use the Chocolatey package manager to install Google Crohome without user or admin intervenes. In this blog post, I will show you how to install Google Chrome on a managed Windows Machines using Ansible.
