forked from JayBazuzi/machine-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwindows-basic.ps1
63 lines (47 loc) · 2.48 KB
/
windows-basic.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
# 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
# only run at first boot
$alreadyInstalledMarkerFile = "$env:TEMP\cloud-desktop\installed-already.txt"
if (Test-Path $alreadyInstalledMarkerFile -PathType leaf) {
exit
}
mkdir "$env:TEMP\cloud-desktop"
echo "$null" >> "$alreadyInstalledMarkerFile"
iwr -useb cin.st | iex
choco feature enable --name=allowGlobalConfirmation
choco feature disable --name=showDownloadProgress
cinst win-no-annoy
cinst firefox googlechrome setdefaultbrowser
SetDefaultBrowser.exe HKLM Firefox-308046B0AF4A39CB
cinst git poshgit # not installing git-fork and github-desktop for now, as it doesn't work when running the script from the cloud
cinst notepadplusplus sublimetext3
cinst beyondcompare
cinst procexp
# Install Mobster Mob-Programming timer
pushd "$env:TEMP\cloud-desktop"
Invoke-WebRequest https://github.com/dillonkearns/mobster/releases/download/v0.0.48/Mobster-Setup-0.0.48.exe -OutFile Mobster-Setup-0.0.48.exe
.\Mobster-Setup-0.0.48.exe /S
popd
# 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
# Clean up the task bar
cinst syspin --ignore-checksums
syspin "C:\Program Files\Git\git-bash.exe" "Pin to taskbar"
# syspin "$ENV:LocalAppData\Fork\Fork.exe" "Pin to taskbar"
# syspin "$ENV:LocalAppData\GitHubDesktop\GitHubDesktop.exe" "Pin to taskbar"
syspin "c:\Program Files\Mozilla Firefox\firefox.exe" "Pin to taskbar"
syspin "C:\Program Files\Google\Chrome\Application\chrome.exe" "Pin to taskbar"
syspin "C:\Program Files\internet explorer\iexplore.exe" "Unpin from taskbar"
cinst taskbar-winconfig --params "'/CORTANA:no /INK:no /PEOPLE:no /TASKVIEW:no /KEYBOARD:no'"^
# Set Timezone
Set-Timezone -Id "W. Europe Standard Time" -PassThru
# Often fails because anydesk chocolatey authoring is bad
cinst anydesk --ignore-checksums
syspin "C:\ProgramData\chocolatey\lib\anydesk.portable\tools\AnyDesk.exe" "Pin to taskbar"