-
Notifications
You must be signed in to change notification settings - Fork 10
/
windows.ps1
92 lines (69 loc) · 3.23 KB
/
windows.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
# This script
# iwr -useb https://raw.githubusercontent.com/JayBazuzi/machine-setup/main/windows.ps1 | iex
Write-Host -Foreground yellow "Warning: You will need to Reboot when done or AnyDesk will not work properly"
#Requires -RunAsAdministrator
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
# Install-PackageProvider -Force -Name NuGet
# Install-Module -Force PSWindowsUpdate
# Get-WindowsUpdate
# Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot
iwr -useb cin.st | iex
choco feature enable --name=allowGlobalConfirmation
choco feature disable --name=showDownloadProgress
choco install win-no-annoy
choco install googlechrome setdefaultbrowser
SetDefaultBrowser.exe chrome
choco install powershell-core
choco install git poshgit github-desktop
Set-Alias github $env:LOCALAPPDATA\GitHubDesktop\bin\github.bat
choco install notepadplusplus
choco install beyondcompare
# delete annoying Windows notification sounds
Remove-Item -ErrorAction SilentlyContinue -Recurse HKCU:\AppEvents\Schemes
Set-Service Audiosrv -StartupType Automatic
# Show seconds in the clock so screen sharing latency is obvious to all
Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced ShowSecondsInSystemClock 1
# Open new explorer windows to This PC instead of Quick Access
Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced LaunchTo 1
choco install vscode
@(
'wmaurer.change-case'
'streetsidesoftware.code-spell-checker'
'ryu1kn.partial-diff'
'ms-vscode.powershell'
'mohsen1.prettify-json'
'vscode-icons-team.vscode-icons'
) | % { & "C:\Program Files\Microsoft VS Code\bin\code.cmd" --install-extension $_ }
@'
{
"diffEditor.ignoreTrimWhitespace": true,
"diffEditor.renderSideBySide": false,
"editor.minimap.enabled": true,
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "all",
"editor.bracketPairColorization.enabled": true,
"git.autofetch": true,
"git.autofetchPeriod": 1,
"git.enableSmartCommit": true,
"git.fetchOnPull": true,
"workbench.iconTheme": "vscode-icons",
"workbench.startupEditor": "newUntitledFile",
"files.autoSaveDelay": 100,
"files.autoSave": "afterDelay"
}
'@ | Out-File -Encoding ASCII $env:APPDATA\Code\User\settings.json
$ProgressPreference = 'SilentlyContinue'
$mobtimeVersion = '1.7.4'
iwr https://github.com/GreatWebGuy/MobTime/releases/download/v$mobtimeVersion/MobTime-$mobtimeVersion.msi -O MobTime.msi
./MobTime.msi /qr
& "${env:ProgramFiles}\Google\Chrome\Application\chrome.exe" https://app.mindmup.com/map/new
# Clean up the task bar
choco install syspin --ignore-checksums
syspin "C:\Program Files\Google\Chrome\Application\chrome.exe" "Pin to taskbar"
syspin "C:\Users\Administrator\AppData\Local\GitHubDesktop\GitHubDesktop.exe" "Pin to taskbar"
syspin "C:\Users\Administrator\AppData\Local\MobTime\MobTime.exe" "Pin to taskbar"
syspin "C:\Program Files\internet explorer\iexplore.exe" "Unpin from taskbar"
choco install taskbar-winconfig --params "'/CORTANA:no /INK:no /PEOPLE:no /TASKVIEW:no /KEYBOARD:no'"
choco uninstall taskbar-winconfig
choco install teamviewer
syspin "C:\Program Files\TeamViewer\TeamViewer.exe" "Pin to taskbar"