-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows Setup.ps1
50 lines (40 loc) · 2.86 KB
/
Windows Setup.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
### Install work specific tools
# Disable and re-enable WSUS listing in Policy to install RSAT tools.
# Remove the comment on the line for the Group Policy Management Tools if needed.
# Temporarily disable Windows Update policy, restarting Windows Update.
$UseWUServer = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" | Select-Object -ExpandProperty UseWUServer
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value 0
Restart-Service "Windows Update"
# Install RSAT AD Management Tools
Get-WindowsCapability -Name "Rsat.ActiveDirectory.DS-LDS.Tools*" -Online | Add-WindowsCapability -Online
# Uncomment line below to also install RSAT Group Policy Management tools, if needed.
Get-WindowsCapability -Name "Rsat.GroupPolicy.Management.Tools*" -Online | Add-WindowsCapability -Online
# Restore Windows Update policy and restart Windows Update service.
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "UseWUServer" -Value $UseWUServer
Restart-Service "Windows Update"
# Install applications from winget
winget install -e --id Yubico.Authenticator --accept-package-agreements
winget install -e --id Yubico.YubikeyManager --accept-package-agreements
winget install -e --id Discord.Discord --accept-package-agreements
winget install -e --id Notepad++.Notepad++ --accept-package-agreements
winget install -e --id Logseq.Logseq --accept-package-agreements
winget install -e --id Dell.CommandUpdate.Universal --accept-package-agreements
winget install -e --id DominikReichl.KeePass --accept-package-agreements
### Install developer tools
winget install -e --id Git.Git --accept-package-agreements
winget install -e --id JetBrains.Toolbox --accept-package-agreements
winget install -e --id beekeeper-studio.beekeeper-studio --accept-package-agreements
winget install -e --id Microsoft.WindowsTerminal --accept-package-agreements
winget install -e --id Microsoft.SQLServerManagementStudio --accept-package-agreements
winget install -e --id Postman.Postman --accept-package-agreements
### Install misc applications and tools
winget install -e --id Logitech.GHUB --accept-package-agreements
winget install -e --id Microsoft.PowerToys --accept-package-agreements
winget install -e --id Mozilla.Firefox --accept-package-agreements
winget install -e --id AgileBits.1Password --accept-package-agreements
winget install -e --id VideoLAN.VLC --accept-package-agreements
winget install -e --id File-New-Project.EarTrumpet --accept-package-agreements
# Install Apple Music Preview from the Microsoft Store
winget install -e --id 9PFHDD62MXS1 --source msstore --accept-package-agreements --accept-source-agreements
# Install Plex Media Player from the Microsoft Store
winget install -e --id XP9CDQW6ML4NQN --source msstore --accept-package-agreements --accept-source-agreements