# __ ___ ____ _ # \ \ / (_)___ ___| _ \(_) # \ \ /\ / /| / __|/ _ \ |_) | | # \ V V / | \__ \ __/ __/| | # \_/\_/ |_|___/\___|_| |_| # # USAGE: # # Open Powershell With Administrator rights # Right click 'Start Menu' button and choose 'Windows Powershell (admin)'. # # Next enter: # iwr update.wisepi.nl/i | iex # $INSTALL_PATH = "$HOME\Desktop\wisepi_install" # Download Setup files New-Item -Path $INSTALL_PATH -ItemType Directory -Force Set-Location $INSTALL_PATH Write-Host "Downloading file 1/8 (nircmd.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\nircmd.exe" "https://update.wisepi.nl/i/nircmd.exe" Write-Host "Downloading file 2/8 (change_pc_name.bat) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\change_pc_name.bat" "https://update.wisepi.nl/i/change_pc_name.bat" Write-Host "Downloading file 3/8 (HideCursor.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\HideCursor.exe" "https://update.wisepi.nl/HideCursor.exe" Write-Host "Downloading file 4/8 (ChromeAlwaysOnTop.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\ChromeAlwaysOnTop.exe" "https://update.wisepi.nl/ChromeAlwaysOnTop.exe" Write-Host "Downloading file 5/8 (ISLAlwaysOn.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\ISLAlwaysOn.exe" "https://update.wisepi.nl/ISLAlwaysOn.exe" Write-Host "Downloading file 6/8 (NetTimeSetup-314.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\NetTimeSetup-314.exe" "https://update.wisepi.nl/NetTimeSetup-314.exe" Write-Host "Downloading file 7/8 (wpsync-setup-latest.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\wpsync-setup-latest.exe" "https://update.wisepi.nl/wpsync/wpsync-setup-latest.exe" Write-Host "Downloading file 8/8 (chrome_installer.exe) ..." -ForegroundColor Cyan curl.exe -L -# -o "$INSTALL_PATH\chrome_installer.exe" "http://dl.google.com/chrome/install/latest/chrome_installer.exe" # Never expires user password Get-LocalUser | Set-LocalUser -PasswordNeverExpires:$True # Set location/language/time zone Set-WinHomeLocation -GeoId 0xB0 Set-Culture -CultureInfo nl-NL Set-TimeZone -Id "W. Europe Standard Time" # Disable Windows Recovery bcdedit /set "{current}" recoveryenabled no # Set Register Values New-ItemProperty -Name "PromptOnSecureDesktop" -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "EnableLUA" -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "SearchboxTaskbarMode" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "DisableAntiSpyware" -Path "HKLM:\Software\Policies\Microsoft\Windows Defender" -PropertyType DWord -Value 1 -Force New-ItemProperty -Name "SmartScreenEnabled" -Path "HKLM:\Software\Policies\Microsoft\Windows Defender" -PropertyType String -Value "Off" -Force New-ItemProperty -Name "HideFileExt" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -PropertyType DWord -Value 0 -Force # Disable Widgets New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Dsh" -Force | Out-Null New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Dsh" -Name "AllowNewsAndInterests" -Value 0 -PropertyType DWord -Force # Remove desktop trash bin icon New-ItemProperty -Name "{645FF040-5081-101B-9F08-00AA002F954E}" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" -PropertyType DWord -Value 1 -Force # Clean task bar New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Force | Out-Null New-Item -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null New-ItemProperty -Name "SearchboxTaskbarMode" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "AllowCortana" -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Search" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "ShowTaskViewButton" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "ShowCortanaButton" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "ShellFeedsTaskbarViewMode" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -PropertyType DWord -Value 2 -Force New-ItemProperty -Name "SilentInstalledAppsEnabled" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -PropertyType DWord -Value 0 -Force New-ItemProperty -Name "TaskbarMn" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Value 0 -PropertyType DWord -Force Remove-ItemProperty -Name "Favorites" -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -ErrorAction SilentlyContinue # Change desktop background color New-ItemProperty -Name "Wallpaper" -Path "HKCU:\Control Panel\Desktop" -PropertyType String -Value "" -Force New-ItemProperty -Name "Background" -Path "HKCU:\Control Panel\Colors" -PropertyType String -Value "24 86 163" -Force # Disable Windows Update $services = @("wuauserv", "UsoSvc") foreach ($service in $services) { Stop-Service -Name $service -Force -ErrorAction SilentlyContinue Set-Service -Name $service -StartupType Disabled } New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force -ErrorAction SilentlyContinue New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Value 1 -PropertyType DWord -Force # Remove widgets (via Web Experience Pack) Get-AppxPackage -AllUsers *WebExperience* | Remove-AppxPackage -AllUsers # Restart explorer for some registery changes to be visible Stop-Process -Name "explorer" -Force # Remove bloatware Write-Host "Removing package 1/59 (*Microsoft.Microsoft3DViewer*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Microsoft3DViewer* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Microsoft3DViewer*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 2/59 (*3dbuilder*) ..." -ForegroundColor Cyan Get-AppxPackage *3dbuilder* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*3dbuilder*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 3/59 (*Microsoft.Bing*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Bing* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Bing*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 4/59 (*Microsoft.GetHelp*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.GetHelp* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.GetHelp*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 5/59 (*Microsoft.GetStarted*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.GetStarted* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.GetStarted*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 6/59 (*Microsoft.MicrosoftOfficeHub*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.MicrosoftOfficeHub* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.MicrosoftOfficeHub*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 7/59 (*Microsoft.MicrosoftSolitareCollection*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.MicrosoftSolitareCollection* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.MicrosoftSolitareCollection*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 8/59 (*Microsoft.MixedRealityViewer*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.MixedRealityViewer* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.MixedRealityViewer*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 9/59 (*Microsoft.MixedReality.Portal*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.MixedReality.Portal* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.MixedReality.Portal*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 10/59 (*Microsoft.RemoteDesktop*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.RemoteDesktop* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.RemoteDesktop*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 11/59 (*Microsoft.YourPhone*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.YourPhone* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.YourPhone*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 12/59 (*Microsoft.NetworkSpeedTest*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.NetworkSpeedTest* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.NetworkSpeedTest*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 13/59 (*Microsoft.Office*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Office* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Office*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 14/59 (*Microsoft.Todos*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Todos* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Todos*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 15/59 (*Microsoft.Office*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Office* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Office*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 16/59 (*Microsoft.Whiteboard*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Whiteboard* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Whiteboard*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 17/59 (*Microsoft.WindowsMaps*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.WindowsMaps* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.WindowsMaps*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 18/59 (*Microsoft.People*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.People* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.People*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 19/59 (*Microsoft.SkypeApp*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.SkypeApp* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.SkypeApp*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 20/59 (*Microsoft.WindowsFeedbackHub*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.WindowsFeedbackHub* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.WindowsFeedbackHub*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 21/59 (*Microsoft.Gaming*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Gaming* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Gaming*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 22/59 (*Microsoft.Xbox*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Xbox* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Xbox*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 23/59 (*Microsoft.Zune*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Zune* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Zune*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 24/59 (*Microsoft.Outlook*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Outlook* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Outlook*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 25/59 (*Microsoft.Onedrive*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Onedrive* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Onedrive*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 26/59 (*Microsoft.Skydrive*) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.Skydrive* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.Skydrive*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 27/59 (*Microsoft.windowscommunicationsapps) ..." -ForegroundColor Cyan Get-AppxPackage *Microsoft.windowscommunicationsapps -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Microsoft.windowscommunicationsapps"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 28/59 (*LinkedIn*) ..." -ForegroundColor Cyan Get-AppxPackage *LinkedIn* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*LinkedIn*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 29/59 (*officehub*) ..." -ForegroundColor Cyan Get-AppxPackage *officehub* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*officehub*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 30/59 (*bingfinance*) ..." -ForegroundColor Cyan Get-AppxPackage *bingfinance* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*bingfinance*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 31/59 (*windowsphone*) ..." -ForegroundColor Cyan Get-AppxPackage *windowsphone* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*windowsphone*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 32/59 (*bingsports*) ..." -ForegroundColor Cyan Get-AppxPackage *bingsports* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*bingsports*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 33/59 (*Twitter*) ..." -ForegroundColor Cyan Get-AppxPackage *Twitter* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Twitter*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 34/59 (king.com.*) ..." -ForegroundColor Cyan Get-AppxPackage king.com.* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "king.com.*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 35/59 (*RoyalRevolt*) ..." -ForegroundColor Cyan Get-AppxPackage *RoyalRevolt* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*RoyalRevolt*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 36/59 (*Netflix*) ..." -ForegroundColor Cyan Get-AppxPackage *Netflix* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Netflix*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 37/59 (Facebook.*) ..." -ForegroundColor Cyan Get-AppxPackage Facebook.* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "Facebook.*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 38/59 (Microsoft.MinecraftUWP) ..." -ForegroundColor Cyan Get-AppxPackage Microsoft.MinecraftUWP -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "Microsoft.MinecraftUWP"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 39/59 (*MarchofEmpires) ..." -ForegroundColor Cyan Get-AppxPackage *MarchofEmpires -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*MarchofEmpires"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 40/59 (*solitairecollection*) ..." -ForegroundColor Cyan Get-AppxPackage *solitairecollection* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*solitairecollection*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 41/59 (*minecraft*) ..." -ForegroundColor Cyan Get-AppxPackage *minecraft* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*minecraft*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 42/59 (*clipchamp*) ..." -ForegroundColor Cyan Get-AppxPackage *clipchamp* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*clipchamp*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 43/59 (*MicrosoftTeams*) ..." -ForegroundColor Cyan Get-AppxPackage *MicrosoftTeams* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*MicrosoftTeams*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 44/59 (*MsTeams*) ..." -ForegroundColor Cyan Get-AppxPackage *MsTeams* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*MsTeams*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 45/59 (*WindowsCalculator*) ..." -ForegroundColor Cyan Get-AppxPackage *WindowsCalculator* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*WindowsCalculator*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 46/59 (*WindowsCamera*) ..." -ForegroundColor Cyan Get-AppxPackage *WindowsCamera* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*WindowsCamera*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 47/59 (*5499814F57091*) ..." -ForegroundColor Cyan Get-AppxPackage *5499814F57091* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*5499814F57091*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 48/59 (*OneConnect*) ..." -ForegroundColor Cyan Get-AppxPackage *OneConnect* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*OneConnect*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 49/59 (*Messaging*) ..." -ForegroundColor Cyan Get-AppxPackage *Messaging* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Messaging*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 50/59 (*Windows.Photos*) ..." -ForegroundColor Cyan Get-AppxPackage *Windows.Photos* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Windows.Photos*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 51/59 (*Paint*) ..." -ForegroundColor Cyan Get-AppxPackage *Paint* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Paint*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 52/59 (*PowerAutomateDesktop*) ..." -ForegroundColor Cyan Get-AppxPackage *PowerAutomateDesktop* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*PowerAutomateDesktop*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 53/59 (*ScreenSketch*) ..." -ForegroundColor Cyan Get-AppxPackage *ScreenSketch* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*ScreenSketch*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 54/59 (*MicrosoftStickyNotes*) ..." -ForegroundColor Cyan Get-AppxPackage *MicrosoftStickyNotes* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*MicrosoftStickyNotes*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 55/59 (*SoundRecorder*) ..." -ForegroundColor Cyan Get-AppxPackage *SoundRecorder* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*SoundRecorder*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 56/59 (*Copilot*) ..." -ForegroundColor Cyan Get-AppxPackage *Copilot* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*Copilot*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 57/59 (*MicrosoftFamily*) ..." -ForegroundColor Cyan Get-AppxPackage *MicrosoftFamily* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*MicrosoftFamily*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 58/59 (*QuickAssist*) ..." -ForegroundColor Cyan Get-AppxPackage *QuickAssist* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*QuickAssist*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue Write-Host "Removing package 59/59 (*LanguageExperiencePack*) ..." -ForegroundColor Cyan Get-AppxPackage *LanguageExperiencePack* -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -like "*LanguageExperiencePack*"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue # Remove Office $office_apps = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object { $_.DisplayName -like "*Office LTSC*" } foreach ($app in $office_apps) { if ($app.UninstallString) { Write-Host "Removing package $($app.DisplayName)" -ForegroundColor Cyan # For MSI/OfficeClickToRun-commands: split exe and parameters if ($app.UninstallString -match '"([^"]+)"\s*(.*)') { $exe = $matches[1] $arguments = $matches[2] $silentArgs = "$arguments forceappshutdown=True displaylevel=True" Start-Process -FilePath $exe -ArgumentList $silentArgs -Wait } else { # No quotes in path Invoke-Expression "$app.UninstallString forceappshutdown=True displaylevel=True" } } } # Disable and remove OneDrive Stop-Process -Name "OneDrive" -Force -ErrorAction SilentlyContinue winget uninstall Microsoft.OneDrive --accept-source-agreements # Mute system volume Start-Process -FilePath "$INSTALL_PATH\nircmd.exe" -ArgumentList "mutesysvolume 1" # Disable all notifications $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" if (-not (Test-Path $path)) { New-Item -Path $path -Force } Set-ItemProperty -Path $path -Name "SubscribedContent-310093Enabled" -Value 0 Set-ItemProperty -Path $path -Name "SubscribedContent-338380Enabled" -Value 0 Set-ItemProperty -Path $path -Name "SubscribedContent-338389Enabled" -Value 0 Set-ItemProperty -Path $path -Name "SubscribedContent-338388Enabled" -Value 0 $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement" if (-not (Test-Path $path)) { New-Item -Path $path -Force } Set-ItemProperty -Path $path -Name "ScoobeSystemSettingEnabled" -Value 0 $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" if (-not (Test-Path $path)) { New-Item -Path $path -Force } Set-ItemProperty -Path $path -Name "ToastEnabled" -Value 0 $path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings" New-Item -Path $path -Force Set-ItemProperty -Path $path -Name "NOC_GLOBAL_SETTING_ALLOW_LOCK_SCREEN" -Value 0 Set-ItemProperty -Path $path -Name "NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK" -Value 0 Set-ItemProperty -Path $path -Name "NOC_GLOBAL_SETTING_ALLOW_TOASTS_WITH_AUDIO" -Value 0 Get-Service -Name WpnUserService* | Restart-Service -Force # Start Installation Stop-Process -Name "HideCursor" -Force -ErrorAction SilentlyContinue Stop-Process -Name "ChromeAlwaysOnTop" -Force -ErrorAction SilentlyContinue Write-Host "Waiting for tasks to be killed..." -ForegroundColor Green Start-Sleep -Seconds 2 $STARTUP_PATH = [Environment]::GetFolderPath('Startup') Move-Item -Path "$INSTALL_PATH\HideCursor.exe" -Destination $STARTUP_PATH -Force Start-Process -FilePath "$STARTUP_PATH\HideCursor.exe" Move-Item -Path "$INSTALL_PATH\ChromeAlwaysOnTop.exe" -Destination $STARTUP_PATH -Force Start-Process -FilePath "$STARTUP_PATH\ChromeAlwaysOnTop.exe" Write-Host "Disabling screensaver..." -ForegroundColor Cyan Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "ScreenSaveTimeOut" -Value 0 Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "ScreenSaveActive" -Value 0 Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "ScreenSaverIsSecure" -Value 0 Write-Host "Disabling notifications..." -ForegroundColor Cyan New-Item -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Force | Out-Null Set-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Value 1 Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "EnableBalloonTips" -Value 0 Write-Host "Disabling LUA..." -ForegroundColor Cyan Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value 0 Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value 0 Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Value 0 Write-Host "Disabling Windows Defender..." -ForegroundColor Cyan Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Value 1 Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows Defender" -Name "DisableRoutinelyTakingAction" -Value 1 Write-Host "Changing PowerCFG..." -ForegroundColor Cyan powercfg /change /monitor-timeout-ac 0 powercfg /change /monitor-timeout-dc 0 powercfg /change /disk-timeout-ac 0 powercfg /change /disk-timeout-dc 0 powercfg /change /standby-timeout-ac 0 powercfg /change /standby-timeout-dc 0 powercfg /change /hibernate-timeout-ac 0 powercfg /change /hibernate-timeout-dc 0 Write-Host "Adding reboot as scheduled task..." -ForegroundColor Cyan schtasks /delete /tn Reboot /f schtasks /create /tn Reboot /tr "c:\windows\system32\shutdown.exe -r -f -t 0" /sc daily /st "03:30" Write-Host "Installing Chrome..." -ForegroundColor Cyan Start-Process -FilePath "$INSTALL_PATH\chrome_installer.exe" -Wait Write-Host "Installing ISL AlwaysOn..." -ForegroundColor Cyan Start-Process -FilePath "$INSTALL_PATH\ISLAlwaysOn.exe" -ArgumentList "/silent" Write-Host "Installing NetTime..." -ForegroundColor Cyan Start-Process -FilePath "$INSTALL_PATH\NetTimeSetup-314.exe" -ArgumentList "/silent" Write-Host "Installing WisePi Sync..." -ForegroundColor Cyan Start-Process -FilePath "$INSTALL_PATH\wpsync-setup-latest.exe" -Wait Write-Host "Setup script is DONE!" -ForegroundColor Green