-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeveloper-enterprise.ps1
96 lines (83 loc) · 5.94 KB
/
developer-enterprise.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
New-Item -Path $env:UserProfile\AppData\Local\ChocoCache -ItemType directory -force
Disable-UAC
#--- Initial Windows Config ---
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowFileExtensions -EnableShowFullPathInTitleBar -DisableOpenFileExplorerToQuickAccess
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 LaunchTo -Value 1
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
#--- Windows features ---
cinst -y Containers -source windowsFeatures
cinst -y Microsoft-Hyper-V-All -source windowsFeatures
cinst -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures
cinst -y IIS-WebServerRole -source windowsfeatures
cinst -y IIS-HttpCompressionDynamic -source windowsfeatures
cinst -y IIS-ManagementScriptingTools -source windowsfeatures
cinst -y IIS-WindowsAuthentication -source windowsfeatures
cinst -y IIS-ASPNET -source windowsfeatures
cinst -y IIS-ASPNET45 -source windowsfeatures
#--- .NET ---
cinst PowerShell -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnet4.5 -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnet4.6.2 -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnet4.7 -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst netfx-4.7.1-devpack -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore-sdk -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore-windowshosting -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore-runtime.install --version 1.0.10 -my --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore-runtime.install --version 1.1.7 -my --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore-runtime.install --version 2.0.7 -my --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst dotnetcore-runtime.install --version 2.1.0 -my --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
#--- Applications ---
cinst googlechrome -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst javaruntime -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst notepadplusplus.install -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst notepad3.install -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
#--- Visual Studio ---
cinst visualstudio2017enterprise -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2017-workload-manageddesktop -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2017-workload-netcoretools -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2017-workload-netweb -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2017-workload-node -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2019enterprise -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2019-workload-manageddesktop -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2019-workload-netcoretools -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2019-workload-netweb -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst visualstudio2019-workload-node -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
#--- Other dev ---
cinst git -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst resharper-ultimate-all -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst sql-server-management-studio -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst poshgit -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst sourcetree -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst linqpad -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst github -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst docker-for-windows -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst docker-kitematic -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst redis-desktop-manager -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst rdcman -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst ProcExp -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst cloudberryexplorer.s3 -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst postman -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst sysinternals -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst python -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst awstools.powershell -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
cinst pip -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
#--- Visual Studio Code ---
cinst visualstudiocode -y --cacheLocation "$env:UserProfile\AppData\Local\ChocoCache"
code --install-extension ms-vscode.csharp
code --install-extension ms-vscode.powershell
code --install-extension formulahendry.auto--cacheLocationlose-tag
code --install-extension jchannon.csharpextensions
code --install-extension cake-build.cake-vscode
code --install-extension maptz.camelcasenavigation
code --install-extension PeterJausovec.vscode-docker
code --install-extension eamodio.gitlens
#--- Ubuntu ---
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Ubuntu.appx -UseBasicParsing
Add-AppxPackage -Path ~/Ubuntu.appx
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -AcceptEula