Add Reimage PC.ps1
This commit is contained in:
61
Reimage PC.ps1
Normal file
61
Reimage PC.ps1
Normal file
@@ -0,0 +1,61 @@
|
||||
#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
|
||||
|
||||
#Install Programs with Chocolatey
|
||||
$Installs = "freecad", "dotnetcore", "lghub", "epicgameslauncher", "origin", "git"
|
||||
#$Installs = "dotnetcore"
|
||||
Foreach($Item in $Installs)
|
||||
{
|
||||
choco install $Item -y
|
||||
Start-Sleep -Seconds 5
|
||||
}
|
||||
|
||||
#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"
|
||||
|
||||
#7zip
|
||||
Invoke-WebRequest 'https://www.7-zip.org/a/7z2408-x64.exe' -OutFile "$Temp\7zip.exe"
|
||||
Start-Process "$Temp\7zip.exe" -ArgumentList "/S"
|
||||
|
||||
#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"
|
||||
|
||||
#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"
|
||||
Reference in New Issue
Block a user