-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathwindows-finish.ps1
109 lines (90 loc) · 3.59 KB
/
windows-finish.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
# PowerShell script to finish out windows install
#
# PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/jlim0930/scripts/master/windows-finish.ps1'))"
#
# Configure ExecutionPolicy to Unrestricted for CurrentUser Scope
if ((Get-ExecutionPolicy -Scope CurrentUser) -notcontains "Unrestricted") {
Write-Verbose -Message "Setting Execution Policy for Current User..."
Start-Process -FilePath "PowerShell" -ArgumentList "Set-ExecutionPolicy","-Scope","CurrentUser","-ExecutionPolicy","Unrestricted","-Force" -Verb RunAs -Wait
Write-Output "Restart/Re-Run script!!!"
Start-Sleep -Seconds 10
Break
}
# install scoop
irm get.scoop.sh | iex
scoop install sudo
# install winget
$wingetlink = 'https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle'
Invoke-WebRequest -Uri $wingetlink -Outfile winget-installer.msixbundle
.\winget-installer.msixbundle
Start-Sleep -Seconds 60
# Only install OpenSSH Package, if not on Windows 10
if ([Environment]::OSVersion.Version.Major -lt 10) {
Install-ScoopApp -Package "openssh"
}
# Install OpenSSH.Client on Windows 10+
@'
if ((Get-WindowsCapability -Online -Name OpenSSH.Client*).State -ne "Installed") {
Add-WindowsCapability -Online -Name OpenSSH.Client*
}
'@ > "${Env:Temp}\openssh.ps1"
Start-Process -FilePath "PowerShell" -ArgumentList "${Env:Temp}\openssh.ps1" -Verb RunAs -Wait -WindowStyle Hidden
Remove-Item -Path "${Env:Temp}\openssh.ps1" -Force
# Configure git
scoop install 7zip git
reg import "C:\Users\$env:USERNAME\scoop\apps\7zip\current\install-context.reg"
# Set Timezone
Set-TimeZone -Name "Central Standard Time"
# Add Language
Install-Language ko-KR -AsJob
# Change User variables
[Environment]::SetEnvironmentVariable("TEMP", "C:\temptemp", "User")
[Environment]::SetEnvironmentVariable("TMP", "C:\temptemp", "User")
# Change System variables
sudo [Environment]::SetEnvironmentVariable("TMP", "C:\temptemp", "Machine")
sudo [Environment]::SetEnvironmentVariable("TEMP", "C:\temptemp", "Machine")
# scoop stuff
scoop install curl grep sed less touch
# Add Buckets
scoop bucket add extras
scoop bucket add nonportable
scoop bucket add java
scoop bucket add nerd-fonts
scoop bucket add nirsoft
# scoop packages
scoop install firefox
scoop install brave
scoop install mobaxterm
scoop install putty
scoop install totalcommander
scoop install bitwarden
scoop install sharex
scoop install vscode
reg import "C:\Users\$env:USERNAME\scoop\apps\vscode\current\install-associations.reg"
scoop install notepadplusplus
reg import "C:\Users\$env:USERNAME\scoop\apps\notepadplusplus\current\install-context.reg"
scoop install k-lite-codec-pack-standard-np
scoop install winrar
scoop install vlc
scoop install revouninstaller
scoop install spotify
scoop install foxit-pdf-reader
scoop install unlocker
scoop install winaero-tweaker
scoop install powertoys
scoop install Noto-CJK-Mega-OTC
scoop isntall clink
scoop install sysinternals
# winget packages
winget install --id="AOMEI.PartitionAssistant" -e
winget install --id="Microsoft.DotNet.DesktopRuntime.3_1" -e
winget install --id="Microsoft.DotNet.DesktopRuntime.5" -e
winget install --id="Microsoft.DotNet.DesktopRuntime.6" -e
winget install --id="Microsoft.DotNet.DesktopRuntime.7" -e
winget install --id="Google.Chrome" -e
# wsl
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
scoop bucket add wsl https://github.com/KNOXDEV/wsl
# Done
Write-Output "Install complete! Please reboot your machine/worksation!"
Start-Sleep -Seconds 10