-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
windows-home.ps1
46 lines (40 loc) · 1.36 KB
/
windows-home.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
41
42
43
44
45
46
# Description: Boxstarter Script
# Author: Joseph Petersen
# My Personal Setup
Disable-UAC
Disable-MicrosoftUpdate
# 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 ..."
Invoke-Expression ((new-object net.webclient).DownloadString("$helperUri/$script"))
}
if (!$env:ChocolateyInstall) {
$env:ChocolateyInstall = "C:\ProgramData\chocolatey"
}
$chocoProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if ([System.IO.File]::Exists("$chocoProfile")) {
Import-Module "$chocoProfile"
}
ExecuteScript "SystemConfiguration.ps1"
ExecuteScript "Winget.ps1"
ExecuteScript "Features.ps1"
ExecuteScript "RemoveDefaultApps.ps1"
ExecuteScript "CommonApps.ps1"
ExecuteScript "DevApps.ps1"
ExecuteScript "HomeApps.ps1"
ExecuteScript "WSL.ps1"
ExecuteScript "Fonts.ps1"
ExecuteScript "Projects.ps1"
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula