Files
public/Reimage PC.ps1
2024-10-09 01:04:35 +00:00

78 lines
4.2 KiB
PowerShell

#Disable UAC
Set-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name ConsentPromptBehaviorAdmin -Value 0
$Username = $ENV:Username
#Disable Mouse Precision
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\Control Panel\Mouse" -Name MouseSpeed -Value 0
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\Control Panel\Mouse" -Name MouseThreshold1 -Value 0
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\Control Panel\Mouse" -Name MouseThreshold2 -Value 0
#Set Default User Folders
New-Item -Path "C:\Users\$Username\My Files" -ItemType Directory
New-Item -Path "C:\Users\$Username\My Files\Documents" -ItemType Directory
New-Item -Path "C:\Users\$Username\My Files\Downloads" -ItemType Directory
New-Item -Path "C:\Users\$Username\My Files\Pictures" -ItemType Directory
New-Item -Path "C:\Users\$Username\My Files\Videos" -ItemType Directory
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Personal" -Value "%USERPROFILE%\My Files\Documents"
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Value "%USERPROFILE%\My Files\Downloads"
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" -Value "%USERPROFILE%\My Files\Pictures"
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" -Value "%USERPROFILE%\My Files\Videos"
#Old Right Click Menu in Win 11
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
#App Installs
Set-ExecutionPolicy Bypass
$Temp = "C:\Temp"
New-Item $Temp -ItemType Directory
#Steam
Invoke-WebRequest 'https://cdn.akamai.steamstatic.com/client/installer/SteamSetup.exe' -OutFile "C:\Temp\SteamSetup.exe"
Start-Process "$Temp\SteamSetup.exe" -ArgumentList "/S" -Wait
#Discord
Invoke-WebRequest 'https://discord.com/api/downloads/distributions/app/installers/latest?channel=stable&platform=win&arch=x64' -OutFile "$Temp\Discord.exe"
Start-Process "$Temp\Discord.exe" -ArgumentList "/qn" -Wait
#7zip
Invoke-WebRequest 'https://www.7-zip.org/a/7z2408-x64.exe' -OutFile "$Temp\7zip.exe"
Start-Process "$Temp\7zip.exe" -ArgumentList "/S" -Wait
#VS Code
Invoke-WebRequest 'https://code.visualstudio.com/sha/download?build=stable&os=win32-x64' -OutFile "$Temp\vscode.exe"
Start-Process "$Temp\vscode.exe" -ArgumentList "/VERYSILENT" -Wait
#Resilio Sync
Invoke-WebRequest 'https://download-cdn.resilio.com/stable/windows/64/0/Resilio-Sync_x64.exe' -OutFile "$Temp\rsync.exe"
Start-Process "$Temp\rsync.exe" -ArgumentList "/S" -Wait
#Cura
Invoke-WebRequest 'https://github.com/Ultimaker/Cura/releases/download/5.8.1/UltiMaker-Cura-5.8.1-win64-X64.exe' -OutFile "$Temp\cura.exe"
Start-Process "$Temp\cura.exe" -ArgumentList "/S" -Wait
#LG Hub
Invoke-WebRequest 'https://download01.logi.com/web/ftp/pub/techsupport/gaming/lghub_installer.exe' -OutFile "$Temp\lghub.exe"
Start-Process "$Temp\lghub.exe" -ArgumentList "--silent" -Wait
#Free CAD
Invoke-WebRequest 'https://github.com/FreeCAD/FreeCAD/releases/download/0.21.2/FreeCAD-0.21.2-WIN-x64-installer-1.exe' -OutFile "$Temp\freecad.exe"
Start-Process "$Temp\freecad.exe" -ArgumentList "/S" -Wait
#Epic Games
Invoke-WebRequest 'https://launcher-public-service-prod06.ol.epicgames.com/launcher/api/installer/download/EpicGamesLauncherInstaller.msi' -OutFile "$Temp\epic.msi"
Start-Process "$Temp\epic.msi" -ArgumentList "/quiet" -Wait
#Git
Invoke-WebRequest 'https://github.com/git-for-windows/git/releases/download/v2.47.0.windows.1/Git-2.47.0-64-bit.exe' -OutFile "$Temp\git.exe"
Start-Process "$Temp\git.exe" -ArgumentList "/VERYSILENT" -Wait
#EA Origins
Invoke-WebRequest 'https://origin-a.akamaihd.net/EA-Desktop-Client-Download/installer-releases/EADesktopInstaller.exe' -OutFile "$Temp\origin.exe"
Start-Process "$Temp\origin.exe" -ArgumentList "/S" -Wait
#SteelSeries GG
Invoke-WebRequest 'https://steelseries.com/gg/downloads/gg/latest/windows' -OutFile "$Temp\ssgg.exe"
Start-Process "$Temp\ssgg.exe" -ArgumentList "/S" -Wait