-
Notifications
You must be signed in to change notification settings - Fork 1
/
dev_dotnet_web.NET.ps1
40 lines (34 loc) · 1.32 KB
/
dev_dotnet_web.NET.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Description: Boxstarter Script
# Author: Hugo Pacheco
# Based on: https://github.com/Microsoft/windows-dev-box-setup-scripts
# Settings for .NET web development
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 Chocolatey's cache folder is highly recommended and avoids several issues
$cacheFolder = $env:LOCALAPPDATA + '\Temp'
choco config set cacheLocation $cacheFolder
#--- Setting up Windows ---
executeScript "SystemConfiguration.ps1";
executeScript "FileExplorerSettings.ps1";
executeScript "RemoveDefaultApps.ps1";
executeScript "WebBrowsers.ps1";
executeScript "CommonDevTools.ps1";
executeScript "IDEsAndEditors.ps1";
#--- reenabling critical items ---
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula