-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallWindowsDesktop.ps1
128 lines (106 loc) · 5.28 KB
/
InstallWindowsDesktop.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
$ErrorActionPreference = "Stop"
# Install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Just to be sure, create an alias to the path to choco.exe
Set-Alias -Name choco -Value C:\ProgramData\chocolatey\bin\choco.exe
# Install software to your requirements (check https://chocolatey.org for details)
choco install 7zip -y
choco install adobereader -y
choco install az.powershell -y
choco install azure-cli -y
choco install docfx -y
choco install docker-desktop -y
choco install dotnet-6.0-sdk -y
choco install dotnetcore-sdk -y
choco install drawio -y
choco install everything -y
choco install firacode -y
choco install firefox -y
choco install git -y
choco install googlechrome -y
choco install irfanview -y
choco install irfanviewplugins -y
choco install jabra-direct -y
choco install microsoft-edge -y
choco install microsoft-teams -y
choco install netfx-4.8-devpack -y
choco install nodejs-lts -y
choco install openshot -y
choco install paint.net -y
choco install powershell -y
choco install powershell-core -y
choco install rdcman -y
choco install rufus -y
choco install snagit --version=13.1.1 -y
choco install spotify -y
choco install sql-server-management-studio -y
choco install teamviewer -y
choco install visualstudio2022enterprise -y
choco install visualstudio2022-workload-azure -y
choco install visualstudio2022-workload-manageddesktop -y
choco install visualstudio2022-workload-netweb -y
choco install visualstudio2022-workload-node -y
choco install vlc -y
choco install vmware-horizon-client -y
choco install vscode -y
choco install vsts-sync-migrator -y
choco install whatsapp -y
choco install zoomit -y
choco pin add -n=snagit
choco pin add -n="microsoft-teams.install"
choco pin add -n=microsoft-edge
Enable-WindowsOptionalFeature -Online -FeatureName containers -All -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestart
# Other settings
## Set Visual Studio Code as default editor for PowerShell
Set-ItemProperty -path Registry::HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\Edit\Command -name "(Default)" -value "`"C:\Program Files\Microsoft VS Code\Code.exe`" `"%1`""
## Show file extensions
Push-Location
Set-Location HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
Set-ItemProperty . HideFileExt "0"
Set-ItemProperty . Hidden "1"
Pop-Location
## Use PowerShell instead of cmd.exe on Win+X
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name DontUsePowerShellOnWinX -Value 0
## Show This PC, Network, My Files icons on desktop
New-ItemProperty -Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel -Name "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" -Value 0 -ErrorAction SilentlyContinue
New-ItemProperty -Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel -Name "{59031a47-3f72-44a7-89c5-5595fe6b30ee}" -Value 0 -ErrorAction SilentlyContinue
New-ItemProperty -Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel -Name "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -Value 0 -ErrorAction SilentlyContinue
## Set desktop icon size (small)
Set-ItemProperty -path HKCU:\Software\Microsoft\Windows\Shell\Bags\1\Desktop -name IconSize -value 36
## Set wallpaper - if applicable
# Push-Location
# Set-Location HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
# Set-ItemProperty . Wallpaper "C:\users\youruser\pictures\picture.jpg"
# Pop-Location
## Set desktop icon spacing - back to windows std
Push-Location
Set-Location "HKCU:\Control Panel\Desktop\WindowMetrics"
Set-ItemProperty . IconSpacing "-1125"
Set-ItemProperty . IconVerticalSpacing "-1125"
Set-ItemProperty . IconTitleWrap "1"
Set-ItemProperty . CaptionHeight "-330"
Set-ItemProperty . CaptionWidth "-330"
Set-ItemProperty . "Shell Icon Size" "32"
Pop-Location
## Enable task bar icons and grouping - back to windows std
# Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarGlomLevel -Value 0
## Use big icons - back to windows std
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSmallIcons -Value 0
## Show taskbar on all displays disabled - back to windows std
# Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarEnabled -Value 0
## Restore personal email signature
# Copy-Item -Path "C:\sourcedir_of_your_signature\*" -Destination "$($env:USERPROFILE)\AppData\Roaming\Microsoft\Signatures" -Force -Recurse
## Restart explorer.exe to process changes
Stop-Process -ProcessName explorer
## Install AZ Azure DevOps CLI extension
Set-Alias -Name az -Value "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd"
az extension add --name azure-devops
## Trust windows certificates for Git - Only for on-prem git server with local certificate
# git config --global http.sslBackend schannel
## Manual Steps:
## INSTALL:
## Office language packs
## Visio professional
## Visual Studio Liveshare
## Videopad video editor