-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstallMyMachine-Dev.ps1
111 lines (98 loc) · 2.8 KB
/
InstallMyMachine-Dev.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# Description: Boxstarter Script for DEV machine
# Author: Patrick McElreavy
# Based off https://github.com/laurentkempe/Cacao
# Install Chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
refreshenv
# Install PowerShell Modules
Install-Module -Name PSColor
#Disable-UAC
#--- Windows Features ---
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#--- File Explorer Settings ---
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -Value 0
#--- Windows Subsystems/Features ---
# To see the list of available features: choco list --source windowsfeatures
$Features = `
'Microsoft-Hyper-V-All',`
'Microsoft-Windows-Subsystem-Linux',`
'IIS-WebServerRole',`
'IIS-WebServer',`
'IIS-HttpErrors',`
'IIS-ApplicationDevelopment',`
'IIS-NetFxExtensibility',`
'IIS-NetFxExtensibility45',`
'IIS-HealthAndDiagnostics',`
'IIS-HttpLogging',`
'IIS-Security',`
'IIS-URLAuthorization',`
'IIS-RequestFiltering',`
'IIS-Performance',`
'IIS-WebServerManagementTools',`
'WCF-Services45',`
'WCF-TCP-PortSharing45',`
'IIS-WindowsAuthentication',`
'IIS-DigestAuthentication',`
'IIS-StaticContent',`
'IIS-DefaultDocument',`
'IIS-DirectoryBrowsing',`
'IIS-WebSockets',`
'IIS-ApplicationInit',`
'IIS-ASPNET',`
'IIS-ASPNET45',`
'IIS-ASP',`
'IIS-ISAPIExtensions',`
'IIS-ISAPIFilter',`
'IIS-ServerSideIncludes',`
'IIS-BasicAuthentication',`
'IIS-HttpCompressionStatic',`
'IIS-ManagementConsole',`
'NetFx4-AdvSrvs',`
'NetFx4Extended-ASPNET45'
#--- Install Features ---
ForEach ($FeatureName in $Features) {
choco install -y $FeatureName -source windowsfeatures
}
#--- Define Packages to Install ---
$Packages = `
'7zip',`
'conemu',`
'dotnet-9.0-sdk',`
'dotnet-desktopruntime',`
'dotnet-sdk',`
'dotnet-aspnetcoremodule-v2',`
'dotnetfx',`
'FiraCodeNF',`
'fzf',`
'git',`
'gitkraken',`
'GoogleChrome',`
'jabra-direct',`
'linqpad',`
'logioptionsplus',`
'netfx-4.8.1-devpack',`
'nodejs',`
'notepadplusplus',`
'oh-my-posh',`
'paint.net',`
'poshgit',`
'postman',`
'powershell-core',`
'powertoys',`
'procexp',`
'rapidee',`
'sql-server-management-studio',`
'visualstudio2022professional',`
'vscode',`
'wiztree',`
'zoxide'
#--- Install Packages ---
ForEach ($PackageName in $Packages) {
choco install $PackageName -y
}
#Enable-UAC
#Enable-MicrosoftUpdate
#Install-WindowsUpdate -acceptEula
refreshenv