Skip to content

Instantly share code, notes, and snippets.

@as
Last active March 17, 2018 23:08
Show Gist options
  • Save as/b739e94b1ac0374f7d2e88f144d9b5f3 to your computer and use it in GitHub Desktop.
Save as/b739e94b1ac0374f7d2e88f144d9b5f3 to your computer and use it in GitHub Desktop.
Make Windows 10 remotely sufferable when required to work on it
:: Remove Apps from Windows 10
:: - You need the go command for this
:: - %GOBIN% should be set, and in %PATH%
:: - This wont remove all of the apps
:: - You need to be "ADMIN" cmd prompt for this to work
:: - Paste this into cmd.exe
:: - Yes, this could be a powershell script, but who has time to do that?
:: - This script comes with no warranty
:: - This script is in the public domain, with the hopes that someone other than me will find it useful
:: - Windows 10 is insufferable
go get github.com/as/torgo/xo
go get github.com/as/torgo/fm
go get github.com/as/torgo/x
powershell Get-AppxPackage -AllUsers | xo FullName | x ,x,PackageFullName.+:,d | fm powershell remove-appxpackage %s | cmd
:: Cortana (Annoying Paper Clip 2.0)
:: TODO: Disable her via kernel device driver
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowCortana" /v 0 /f
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowCortanaAboveLock" /v 0 /f
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowIndexingEncryptedStoresOrItems" /v 0 /f
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowSearchToUseLocation" /v 0 /f
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowUsingDiacritics" /v 0 /f
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\AllowCortana" /v 0 /f
reg add "\\.\HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search\DisableWebSearch" /v 1 /f
:: More app crap
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\PreInstalledAppsEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\OemPreInstalledAppsEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\RotatingLockScreenEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\RotatingLockScreenOverlayEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SilentInstalledAppsEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SoftLandingEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SubscribedContentEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\PreInstalledAppsEverEnabled" /v 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\ContentDeliveryAllowed" /v 0 /f
:: Error reporting
:: Disable error reporting, and change the default settings because you know they'll "accidently" reenable it later
:: Note: Don't trust this opt-in mechanism to really disable error reporting
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent\Disabled" /v 1 /f
:: Always ask
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent\DefaultConsent" /v 1 /f
:: Default consent overrides apps
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\Consent\DefaultOverrideBehavior" /v 1 /f
:: Defender, Telemety, LUA
reg add "HKLM\Software\Software\Policies\Microsoft\Windows Defender\DisableAntiSpyware" /v "0" /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\DataCollection\AllowTelemetry" /v "0" /f
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA" /v 0 /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment