Skip to content

Instantly share code, notes, and snippets.

@sneal
Created October 15, 2014 15:38
Show Gist options
  • Save sneal/de23df76382708b132ce to your computer and use it in GitHub Desktop.
Save sneal/de23df76382708b132ce to your computer and use it in GitHub Desktop.
Install Chef PowerShell script
$download_url = 'https://opscode-omnibus-packages.s3.amazonaws.com/windows/2008r2/x86_64/chef-client-11.12.4-1.windows.msi'
(New-Object System.Net.WebClient).DownloadFile($download_url, 'C:\\Windows\\Temp\\chef.msi')
Start-Process 'msiexec' -ArgumentList '/qb /i C:\\Windows\\Temp\\chef.msi' -NoNewWindow -Wait
@derekgroh
Copy link

Pretty sure your file name should be install-chef.ps1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment