forked from microsoft/windows-dev-box-setup-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvj_pc.ps1
More file actions
44 lines (40 loc) · 1.52 KB
/
vj_pc.ps1
File metadata and controls
44 lines (40 loc) · 1.52 KB
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
# Description: Boxstarter Script
# Author: Vijay
# how to run? Visit the url below in a browser
# it will launch a one-click application
# http://boxstarter.org/package/url?https://raw.githubusercontent.com/VijayS1/windows-dev-box-setup-scripts/master/vj_pc.ps1
# 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"))
}
#--- Setting up Windows ---
Disable-UAC
#apps
executeScript "Browsers.ps1";
executeScript "VJApps.ps1";
executeScript "CommonDevTools.ps1";
executeScript "HyperV.ps1";
executeScript "Docker.ps1";
executeScript "WSL.ps1";
#settings
executeScript "FileExplorerSettings.ps1";
executeScript "SystemConfiguration.ps1";
executeScript "RemoveDefaultApps.ps1";
executeScript "MouseCursorSettings.ps1"; #moved below because it was causing problems with the other scripts I believe.
executeScript "OEMInformationSettings.ps1";
#manual step
executeScript "InstallStoreApps.ps1";
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula