Files
public/Reimage PC.ps1
2025-06-17 14:23:17 +00:00

100 lines
5.1 KiB
PowerShell

#Disable UAC
Set-ItemProperty -Path "REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name ConsentPromptBehaviorAdmin -Value 0
tzutil /s "Eastern Standard Time"
$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
$Path = "C:\Users\$Username\My Files"
$RegPath = "My Files"
New-Item -Path $Path -ItemType Directory
New-Item -Path "$Path\Documents" -ItemType Directory
New-Item -Path "$Path\Downloads" -ItemType Directory
New-Item -Path "$Path\Pictures" -ItemType Directory
New-Item -Path "$Path\Videos" -ItemType Directory
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Personal" -Value "%USERPROFILE%\$RegPath\Documents"
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Value "%USERPROFILE%\$RegPath\Downloads"
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" -Value "%USERPROFILE%\$RegPath\Pictures"
Set-ItemProperty -Path "REGISTRY::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" -Value "%USERPROFILE%\$RegPath\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
#Slack
Invoke-WebRequest 'https://slack.com/api/desktop.latestRelease?arch=x64&variant=exe&redirect=true' -OutFile "$Temp\slack.exe"
Start-Process "$Temp\slack.exe" -ArgumentList '/S'
#Steam
Invoke-WebRequest 'https://cdn.akamai.steamstatic.com/client/installer/SteamSetup.exe' -OutFile "C:\Temp\SteamSetup.exe"
Start-Process "$Temp\SteamSetup.exe" -ArgumentList "/S"
#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"
#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"
#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"
#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"
#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"
#Zoom
Invoke-WebRequest 'https://zoom.us/client/6.2.3.47507/ZoomInstallerFull.exe?archType=x64' -OutFile "$Temp\zoom.exe"
Start-Process "$Temp\zoom.exe"
#Battle.net
Invoke-WebRequest 'https://downloader.battle.net//download/getInstallerForGame?os=win&gameProgram=BATTLENET_APP&version=Live' -OutFile "$Temp\bnet.exe"
Start-Process "$Temp\bnet.exe" -ArgumentList '--lang=enUS --installpath="C:\Program Files\Battle.net'
#7zip
Invoke-WebRequest 'https://www.7-zip.org/a/7z2408-x64.exe' -OutFile "$Temp\7zip.exe"
Start-Process "$Temp\7zip.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
#SteelSeries GG
Invoke-WebRequest 'https://steelseries.com/gg/downloads/gg/latest/windows' -OutFile "$Temp\ssgg.exe"
Start-Process "$Temp\ssgg.exe" -ArgumentList "/S" -Wait
#Citrix Workspace
Invoke-WebRequest 'https://downloads.citrix.com/22991/CitrixWorkspaceFullInstaller.exe?__gda__=exp=1728489803~acl=/*~hmac=649280a0ec2bd7ec3b0866f52afea2a740ec0c36b74536e5791d01bd2693645d' -OutFile "$Temp\citrix.exe"
Start-Process "$Temp\citrix.exe" -ArgumentList "/silent" -Wait
#Ubisoft Play
Invoke-WebRequest 'https://static3.cdn.ubi.com/orbit/launcher_installer/UbisoftConnectInstaller.exe' -OutFile "$Temp\Ubisoft.exe"
Start-Process "$Temp\Ubisoft.exe" -ArgumentList "/S" -Wait
#Action1
Invoke-WebRequest 'https://app.action1.com/agent/3b2892f0-b338-11ef-8716-4732f77fc464/Windows/agent(My_Organization).msi' -OutFile "$Temp\action1.msi"
Start-Process "$Temp\action1.msi" -ArgumentList "/silent" -Wait
#Cleanup
Remove-Item $Temp -Recurse