|
| 1 | +# Description: Boxstarter Script |
| 2 | +# Author: Microsoft |
| 3 | +# Common settings for azure devops |
| 4 | + |
| 5 | +Disable-UAC |
| 6 | + |
| 7 | +# Get the base URI path from the ScriptToCall value |
| 8 | +$bstrappackage = "-bootstrapPackage" |
| 9 | +$helperUri = $Boxstarter['ScriptToCall'] |
| 10 | +$strpos = $helperUri.IndexOf($bstrappackage) |
| 11 | +$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length) |
| 12 | +$helperUri = $helperUri.TrimStart("'", " ") |
| 13 | +$helperUri = $helperUri.TrimEnd("'", " ") |
| 14 | +$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/")) |
| 15 | +$helperUri += "/scripts" |
| 16 | +write-host "helper script base URI is $helperUri" |
| 17 | + |
| 18 | +function executeScript { |
| 19 | + Param ([string]$script) |
| 20 | + write-host "executing $helperUri/$script ..." |
| 21 | + iex ((new-object net.webclient).DownloadString("$helperUri/$script")) |
| 22 | +} |
| 23 | + |
| 24 | +#--- Setting up Windows --- |
| 25 | +executeScript "FileExplorerSettings.ps1"; |
| 26 | +executeScript "SystemConfiguration.ps1"; |
| 27 | +executeScript "RemoveDefaultApps.ps1"; |
| 28 | +executeScript "WSL.ps1"; |
| 29 | +executeScript "HyperV.ps1"; |
| 30 | +executeScript "Docker.ps1"; |
| 31 | +executeScript "Browsers.ps1"; |
| 32 | + |
| 33 | +# TODO: Expand on tools/configuration options here |
| 34 | +# Azure CLI, Azure PS, Azure SDK, Ansible, TerraForms |
| 35 | + |
| 36 | +Enable-UAC |
| 37 | +Enable-MicrosoftUpdate |
| 38 | +Install-WindowsUpdate -acceptEula |
0 commit comments