34 lines
1.1 KiB
PowerShell
34 lines
1.1 KiB
PowerShell
# Description: Boxstarter Script
|
|
# Author: Microsoft
|
|
# Common dev settings for machine learning using only Windows native tools
|
|
|
|
Disable-UAC
|
|
|
|
# Get the base URI path from the ScriptToCall value
|
|
$bstrappackage = "-bootstrapPackage"
|
|
$helperUri = $Boxstarter['ScriptToCall']
|
|
$strpos = $helperUri.IndexOf($bstrappackage)
|
|
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
|
|
$helperUri = $helperUri.TrimStart("'", " ")
|
|
$helperUri = $helperUri.TrimEnd("'", " ")
|
|
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
|
|
$helperUri += "/scripts"
|
|
write-host "helper script base URI is $helperUri"
|
|
|
|
function executeScript {
|
|
Param ([string]$script)
|
|
write-host "executing $helperUri/$script ..."
|
|
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
|
|
}
|
|
|
|
#--- Setting up Windows ---
|
|
executeScript "SystemConfiguration.ps1";
|
|
executeScript "FileExplorerSettings.ps1";
|
|
executeScript "RemoveDefaultApps.ps1";
|
|
executeScript "GetMLIDEAndTooling.ps1";
|
|
executeScript "PythonMLTools.ps1";
|
|
|
|
Enable-UAC
|
|
Enable-MicrosoftUpdate
|
|
Install-WindowsUpdate -acceptEula
|