feat: init
This commit is contained in:
commit
65d2f47915
35 changed files with 23075 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Write-Host "Clear last used files and folders"
|
||||
Remove-Item %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\*.automaticDestinations-ms -FORCE -ErrorAction SilentlyContinue
|
||||
67
Windows10Debloater/Individual Scripts/Debloat Windows
Normal file
67
Windows10Debloater/Individual Scripts/Debloat Windows
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
$AppXApps = @(
|
||||
|
||||
#Unnecessary Windows 10 AppX Apps
|
||||
"*Microsoft.BingNews*"
|
||||
"*Microsoft.GetHelp*"
|
||||
"*Microsoft.Getstarted*"
|
||||
"*Microsoft.Messaging*"
|
||||
"*Microsoft.Microsoft3DViewer*"
|
||||
"*Microsoft.MicrosoftOfficeHub*"
|
||||
"*Microsoft.MicrosoftSolitaireCollection*"
|
||||
"*Microsoft.NetworkSpeedTest*"
|
||||
"*Microsoft.Office.Sway*"
|
||||
"*Microsoft.OneConnect*"
|
||||
"*Microsoft.People*"
|
||||
"*Microsoft.Print3D*"
|
||||
"*Microsoft.SkypeApp*"
|
||||
"*Microsoft.WindowsAlarms*"
|
||||
"*Microsoft.WindowsCamera*"
|
||||
"*microsoft.windowscommunicationsapps*"
|
||||
"*Microsoft.WindowsFeedbackHub*"
|
||||
"*Microsoft.WindowsMaps*"
|
||||
"*Microsoft.WindowsSoundRecorder*"
|
||||
"*Microsoft.Xbox.TCUI*"
|
||||
"*Microsoft.XboxApp*"
|
||||
"*Microsoft.XboxGameOverlay*"
|
||||
"*Microsoft.XboxIdentityProvider*"
|
||||
"*Microsoft.XboxSpeechToTextOverlay*"
|
||||
"*Microsoft.ZuneMusic*"
|
||||
"*Microsoft.ZuneVideo*"
|
||||
|
||||
#Sponsored Windows 10 AppX Apps
|
||||
#Add sponsored/featured apps to remove in the "*AppName*" format
|
||||
"*EclipseManager*"
|
||||
"*ActiproSoftwareLLC*"
|
||||
"*AdobeSystemsIncorporated.AdobePhotoshopExpress*"
|
||||
"*Duolingo-LearnLanguagesforFree*"
|
||||
"*PandoraMediaInc*"
|
||||
"*CandyCrush*"
|
||||
"*Wunderlist*"
|
||||
"*Flipboard*"
|
||||
"*Twitter*"
|
||||
"*Facebook*"
|
||||
"*Spotify*"
|
||||
|
||||
#Optional: Typically not removed but you can if you need to for some reason
|
||||
#"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*"
|
||||
#"*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe*"
|
||||
#"*Microsoft.BingWeather*"
|
||||
#"*Microsoft.MSPaint*"
|
||||
#"*Microsoft.MicrosoftStickyNotes*"
|
||||
#"*Microsoft.Windows.Photos*"
|
||||
#"*Microsoft.WindowsCalculator*"
|
||||
#"*Microsoft.WindowsStore*"
|
||||
)
|
||||
foreach ($App in $AppXApps) {
|
||||
Write-Verbose -Message ('Removing Package {0}' -f $App)
|
||||
Get-AppxPackage -Name $App | Remove-AppxPackage -ErrorAction SilentlyContinue
|
||||
Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
|
||||
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $App | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
#Removes AppxPackages
|
||||
#Credit to /u/GavinEke for a modified version of my whitelist code
|
||||
[regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint*'
|
||||
Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage
|
||||
Get-AppxPackage | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage
|
||||
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online
|
||||
17
Windows10Debloater/Individual Scripts/Disable Cortana
Normal file
17
Windows10Debloater/Individual Scripts/Disable Cortana
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Write-Host "Disabling Cortana"
|
||||
$Cortana1 = "HKCU:\SOFTWARE\Microsoft\Personalization\Settings"
|
||||
$Cortana2 = "HKCU:\SOFTWARE\Microsoft\InputPersonalization"
|
||||
$Cortana3 = "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore"
|
||||
If (!(Test-Path $Cortana1)) {
|
||||
New-Item $Cortana1
|
||||
}
|
||||
Set-ItemProperty $Cortana1 AcceptedPrivacyPolicy -Value 0
|
||||
If (!(Test-Path $Cortana2)) {
|
||||
New-Item $Cortana2
|
||||
}
|
||||
Set-ItemProperty $Cortana2 RestrictImplicitTextCollection -Value 1
|
||||
Set-ItemProperty $Cortana2 RestrictImplicitInkCollection -Value 1
|
||||
If (!(Test-Path $Cortana3)) {
|
||||
New-Item $Cortana3
|
||||
}
|
||||
Set-ItemProperty $Cortana3 HarvestContacts -Value 0
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
$Keys = @(
|
||||
|
||||
# Deactivate showing of last used files
|
||||
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HomeFolderDesktop\NameSpace\DelegateFolders\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}"
|
||||
|
||||
# Deactivate showing of last used folders
|
||||
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HomeFolderDesktop\NameSpace\DelegateFolders\{3936E9E4-D92C-4EEE-A85A-BC16D5EA0819}"
|
||||
)
|
||||
|
||||
#This writes the output of each key it is removing and also removes the keys listed above.
|
||||
ForEach ($Key in $Keys) {
|
||||
Write-Output "Removing $Key from registry"
|
||||
Remove-Item $Key -Recurse
|
||||
}
|
||||
17
Windows10Debloater/Individual Scripts/Enable Cortana
Normal file
17
Windows10Debloater/Individual Scripts/Enable Cortana
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Write-Host "Re-enabling Cortana"
|
||||
$Cortana1 = "HKCU:\SOFTWARE\Microsoft\Personalization\Settings"
|
||||
$Cortana2 = "HKCU:\SOFTWARE\Microsoft\InputPersonalization"
|
||||
$Cortana3 = "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore"
|
||||
If (!(Test-Path $Cortana1)) {
|
||||
New-Item $Cortana1
|
||||
}
|
||||
Set-ItemProperty $Cortana1 AcceptedPrivacyPolicy -Value 1
|
||||
If (!(Test-Path $Cortana2)) {
|
||||
New-Item $Cortana2
|
||||
}
|
||||
Set-ItemProperty $Cortana2 RestrictImplicitTextCollection -Value 0
|
||||
Set-ItemProperty $Cortana2 RestrictImplicitInkCollection -Value 0
|
||||
If (!(Test-Path $Cortana3)) {
|
||||
New-Item $Cortana3
|
||||
}
|
||||
Set-ItemProperty $Cortana3 HarvestContacts -Value 1
|
||||
29
Windows10Debloater/Individual Scripts/Enable Edge PDF
Normal file
29
Windows10Debloater/Individual Scripts/Enable Edge PDF
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
Write-Output "Setting Edge back to default"
|
||||
$NoPDF = "HKCR:\.pdf"
|
||||
$NoProgids = "HKCR:\.pdf\OpenWithProgids"
|
||||
$NoWithList = "HKCR:\.pdf\OpenWithList"
|
||||
#Sets edge back to default
|
||||
If (Get-ItemProperty $NoPDF NoOpenWith) {
|
||||
Remove-ItemProperty $NoPDF NoOpenWith
|
||||
}
|
||||
If (Get-ItemProperty $NoPDF NoStaticDefaultVerb) {
|
||||
Remove-ItemProperty $NoPDF NoStaticDefaultVerb
|
||||
}
|
||||
If (Get-ItemProperty $NoProgids NoOpenWith) {
|
||||
Remove-ItemProperty $NoProgids NoOpenWith
|
||||
}
|
||||
If (Get-ItemProperty $NoProgids NoStaticDefaultVerb) {
|
||||
Remove-ItemProperty $NoProgids NoStaticDefaultVerb
|
||||
}
|
||||
If (Get-ItemProperty $NoWithList NoOpenWith) {
|
||||
Remove-ItemProperty $NoWithList NoOpenWith
|
||||
}
|
||||
If (Get-ItemProperty $NoWithList NoStaticDefaultVerb) {
|
||||
Remove-ItemProperty $NoWithList NoStaticDefaultVerb
|
||||
}
|
||||
|
||||
#Removes an underscore '_' from the Registry key for Edge
|
||||
$Edge2 = "HKCR:\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_"
|
||||
If (Test-Path $Edge2) {
|
||||
Set-Item $Edge2 AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
If (!(Get-AppxPackage -AllUsers | Select Microsoft.Paint3D, Microsoft.WindowsCalculator, Microsoft.WindowsStore, Microsoft.Windows.Photos)) {
|
||||
|
||||
#Credit to abulgatz for these 4 lines of code
|
||||
Get-AppxPackage -allusers Microsoft.Paint3D | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
}
|
||||
134
Windows10Debloater/Individual Scripts/Protect Privacy
Normal file
134
Windows10Debloater/Individual Scripts/Protect Privacy
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
#Disables Windows Feedback Experience
|
||||
Write-Output "Disabling Windows Feedback Experience program"
|
||||
$Advertising = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo"
|
||||
If (Test-Path $Advertising) {
|
||||
Set-ItemProperty $Advertising Enabled -Value 0
|
||||
}
|
||||
|
||||
#Stops Cortana from being used as part of your Windows Search Function
|
||||
Write-Output "Stopping Cortana from being used as part of your Windows Search Function"
|
||||
$Search = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
|
||||
If (Test-Path $Search) {
|
||||
Set-ItemProperty $Search AllowCortana -Value 0
|
||||
}
|
||||
|
||||
#Disables Web Search in Start Menu
|
||||
Write-Output "Disabling Bing Search in Start Menu"
|
||||
$WebSearch = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
|
||||
Set-ItemProperty "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" BingSearchEnabled -Value 0
|
||||
If (!(Test-Path $WebSearch)) {
|
||||
New-Item $WebSearch
|
||||
}
|
||||
Set-ItemProperty $WebSearch DisableWebSearch -Value 1
|
||||
|
||||
#Stops the Windows Feedback Experience from sending anonymous data
|
||||
Write-Output "Stopping the Windows Feedback Experience program"
|
||||
$Period = "HKCU:\Software\Microsoft\Siuf\Rules"
|
||||
If (!(Test-Path $Period)) {
|
||||
New-Item $Period
|
||||
}
|
||||
Set-ItemProperty $Period PeriodInNanoSeconds -Value 0
|
||||
|
||||
#Prevents bloatware applications from returning and removes Start Menu suggestions
|
||||
Write-Output "Adding Registry key to prevent bloatware apps from returning"
|
||||
$registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
|
||||
$registryOEM = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
|
||||
If (!(Test-Path $registryPath)) {
|
||||
New-Item $registryPath
|
||||
}
|
||||
Set-ItemProperty $registryPath DisableWindowsConsumerFeatures -Value 1
|
||||
|
||||
If (!(Test-Path $registryOEM)) {
|
||||
New-Item $registryOEM
|
||||
}
|
||||
Set-ItemProperty $registryOEM ContentDeliveryAllowed -Value 0
|
||||
Set-ItemProperty $registryOEM OemPreInstalledAppsEnabled -Value 0
|
||||
Set-ItemProperty $registryOEM PreInstalledAppsEnabled -Value 0
|
||||
Set-ItemProperty $registryOEM PreInstalledAppsEverEnabled -Value 0
|
||||
Set-ItemProperty $registryOEM SilentInstalledAppsEnabled -Value 0
|
||||
Set-ItemProperty $registryOEM SystemPaneSuggestionsEnabled -Value 0
|
||||
|
||||
#Preping mixed Reality Portal for removal
|
||||
Write-Output "Setting Mixed Reality Portal value to 0 so that you can uninstall it in Settings"
|
||||
$Holo = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Holographic"
|
||||
If (Test-Path $Holo) {
|
||||
Set-ItemProperty $Holo FirstRunSucceeded -Value 0
|
||||
}
|
||||
|
||||
#Disables Wi-fi Sense
|
||||
Write-Output "Disabling Wi-Fi Sense"
|
||||
$WifiSense1 = "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting"
|
||||
$WifiSense2 = "HKLM:\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots"
|
||||
$WifiSense3 = "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config"
|
||||
If (!(Test-Path $WifiSense1)) {
|
||||
New-Item $WifiSense1
|
||||
}
|
||||
Set-ItemProperty $WifiSense1 Value -Value 0
|
||||
If (!(Test-Path $WifiSense2)) {
|
||||
New-Item $WifiSense2
|
||||
}
|
||||
Set-ItemProperty $WifiSense2 Value -Value 0
|
||||
Set-ItemProperty $WifiSense3 AutoConnectAllowedOEM -Value 0
|
||||
|
||||
#Disables live tiles
|
||||
Write-Output "Disabling live tiles"
|
||||
$Live = "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"
|
||||
If (!(Test-Path $Live)) {
|
||||
New-Item $Live
|
||||
}
|
||||
Set-ItemProperty $Live NoTileApplicationNotification -Value 1
|
||||
|
||||
#Turns off Data Collection via the AllowTelemtry key by changing it to 0
|
||||
Write-Output "Turning off Data Collection"
|
||||
$DataCollection1 = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
|
||||
$DataCollection2 = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection"
|
||||
$DataCollection3 = "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
|
||||
If (Test-Path $DataCollection1) {
|
||||
Set-ItemProperty $DataCollection1 AllowTelemetry -Value 0
|
||||
}
|
||||
If (Test-Path $DataCollection2) {
|
||||
Set-ItemProperty $DataCollection2 AllowTelemetry -Value 0
|
||||
}
|
||||
If (Test-Path $DataCollection3) {
|
||||
Set-ItemProperty $DataCollection3 AllowTelemetry -Value 0
|
||||
}
|
||||
|
||||
#Disabling Location Tracking
|
||||
Write-Output "Disabling Location Tracking"
|
||||
$SensorState = "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}"
|
||||
$LocationConfig = "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration"
|
||||
If (!(Test-Path $SensorState)) {
|
||||
New-Item $SensorState
|
||||
}
|
||||
Set-ItemProperty $SensorState SensorPermissionState -Value 0
|
||||
If (!(Test-Path $LocationConfig)) {
|
||||
New-Item $LocationConfig
|
||||
}
|
||||
Set-ItemProperty $LocationConfig Status -Value 0
|
||||
|
||||
#Disables People icon on Taskbar
|
||||
Write-Output "Disabling People icon on Taskbar"
|
||||
$People = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People"
|
||||
If (!(Test-Path $People)) {
|
||||
New-Item $People
|
||||
}
|
||||
Set-ItemProperty $People PeopleBand -Value 0
|
||||
|
||||
#Disables scheduled tasks that are considered unnecessary
|
||||
Write-Output "Disabling scheduled tasks"
|
||||
Get-ScheduledTask XblGameSaveTaskLogon | Disable-ScheduledTask
|
||||
Get-ScheduledTask XblGameSaveTask | Disable-ScheduledTask
|
||||
Get-ScheduledTask Consolidator | Disable-ScheduledTask
|
||||
Get-ScheduledTask UsbCeip | Disable-ScheduledTask
|
||||
Get-ScheduledTask DmClient | Disable-ScheduledTask
|
||||
Get-ScheduledTask DmClientOnScenarioDownload | Disable-ScheduledTask
|
||||
|
||||
Write-Output "Stopping and disabling WAP Push Service"
|
||||
#Stop and disable WAP Push Service
|
||||
Stop-Service "dmwappushservice"
|
||||
Set-Service "dmwappushservice" -StartupType Disabled
|
||||
|
||||
Write-Output "Stopping and disabling Diagnostics Tracking Service"
|
||||
#Disabling the Diagnostics Tracking Service
|
||||
Stop-Service "DiagTrack"
|
||||
Set-Service "DiagTrack" -StartupType Disabled
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
$Keys = @(
|
||||
|
||||
#Remove Background Tasks
|
||||
"HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y"
|
||||
"HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
|
||||
"HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe"
|
||||
"HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy"
|
||||
"HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy"
|
||||
"HKCR:\Extensions\ContractId\Windows.BackgroundTasks\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy"
|
||||
|
||||
#Windows File
|
||||
"HKCR:\Extensions\ContractId\Windows.File\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
|
||||
|
||||
#Registry keys to delete if they aren't uninstalled by RemoveAppXPackage/RemoveAppXProvisionedPackage
|
||||
"HKCR:\Extensions\ContractId\Windows.Launch\PackageId\46928bounde.EclipseManager_2.2.4.51_neutral__a5h4egax66k6y"
|
||||
"HKCR:\Extensions\ContractId\Windows.Launch\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
|
||||
"HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy"
|
||||
"HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy"
|
||||
"HKCR:\Extensions\ContractId\Windows.Launch\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy"
|
||||
|
||||
#Scheduled Tasks to delete
|
||||
"HKCR:\Extensions\ContractId\Windows.PreInstalledConfigTask\PackageId\Microsoft.MicrosoftOfficeHub_17.7909.7600.0_x64__8wekyb3d8bbwe"
|
||||
|
||||
#Windows Protocol Keys
|
||||
"HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
|
||||
"HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.PPIProjection_10.0.15063.0_neutral_neutral_cw5n1h2txyewy"
|
||||
"HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.15063.0.0_neutral_neutral_cw5n1h2txyewy"
|
||||
"HKCR:\Extensions\ContractId\Windows.Protocol\PackageId\Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_cw5n1h2txyewy"
|
||||
|
||||
#Windows Share Target
|
||||
"HKCR:\Extensions\ContractId\Windows.ShareTarget\PackageId\ActiproSoftwareLLC.562882FEEB491_2.6.18.18_neutral__24pqs290vpjk0"
|
||||
)
|
||||
|
||||
#This writes the output of each key it is removing and also removes the keys listed above.
|
||||
ForEach ($Key in $Keys) {
|
||||
Write-Output "Removing $Key from registry"
|
||||
Remove-Item $Key -Recurse
|
||||
}
|
||||
118
Windows10Debloater/Individual Scripts/Revert Changes
Normal file
118
Windows10Debloater/Individual Scripts/Revert Changes
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
#This function will revert the changes you made when running the Start-Debloat function.
|
||||
|
||||
#This line reinstalls all of the bloatware that was removed
|
||||
Get-AppxPackage -AllUsers | ForEach {Add-AppxPackage -Verbose -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
|
||||
#Tells Windows to enable your advertising information.
|
||||
Write-Output "Re-enabling key to show advertisement information"
|
||||
$Advertising = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo"
|
||||
If (Test-Path $Advertising) {
|
||||
Set-ItemProperty $Advertising Enabled -Value 1
|
||||
}
|
||||
|
||||
#Enables Cortana to be used as part of your Windows Search Function
|
||||
Write-Output "Re-enabling Cortana to be used in your Windows Search"
|
||||
$Search = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
|
||||
If (Test-Path $Search) {
|
||||
Set-ItemProperty $Search AllowCortana -Value 1
|
||||
}
|
||||
|
||||
#Re-enables the Windows Feedback Experience for sending anonymous data
|
||||
Write-Output "Re-enabling Windows Feedback Experience"
|
||||
$Period = "HKCU:\Software\Microsoft\Siuf\Rules"
|
||||
If (!(Test-Path $Period)) {
|
||||
New-Item $Period
|
||||
}
|
||||
Set-ItemProperty $Period PeriodInNanoSeconds -Value 1
|
||||
|
||||
#Enables bloatware applications
|
||||
Write-Output "Adding Registry key to allow bloatware apps to return"
|
||||
$registryPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
|
||||
If (!(Test-Path $registryPath)) {
|
||||
New-Item $registryPath
|
||||
}
|
||||
Set-ItemProperty $registryPath DisableWindowsConsumerFeatures -Value 0
|
||||
|
||||
#Changes Mixed Reality Portal Key 'FirstRunSucceeded' to 1
|
||||
Write-Output "Setting Mixed Reality Portal value to 1"
|
||||
$Holo = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Holographic"
|
||||
If (Test-Path $Holo) {
|
||||
Set-ItemProperty $Holo FirstRunSucceeded -Value 1
|
||||
}
|
||||
|
||||
#Re-enables live tiles
|
||||
Write-Output "Enabling live tiles"
|
||||
$Live = "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"
|
||||
If (!(Test-Path $Live)) {
|
||||
New-Item $Live
|
||||
}
|
||||
Set-ItemProperty $Live NoTileApplicationNotification -Value 0
|
||||
|
||||
#Re-enables data collection
|
||||
Write-Output "Re-enabling data collection"
|
||||
$DataCollection = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection"
|
||||
If (!(Test-Path $DataCollection)) {
|
||||
New-Item $DataCollection
|
||||
}
|
||||
Set-ItemProperty $DataCollection AllowTelemetry -Value 1
|
||||
|
||||
#Re-enables People Icon on Taskbar
|
||||
Write-Output "Enabling People icon on Taskbar"
|
||||
$People = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People"
|
||||
If (!(Test-Path $People)) {
|
||||
New-Item $People
|
||||
}
|
||||
Set-ItemProperty $People PeopleBand -Value 1
|
||||
|
||||
#Re-enables suggestions on start menu
|
||||
Write-Output "Enabling suggestions on the Start Menu"
|
||||
$Suggestions = "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"
|
||||
If (!(Test-Path $Suggestions)) {
|
||||
New-Item $Suggestions
|
||||
}
|
||||
Set-ItemProperty $Suggestions SystemPaneSuggestionsEnabled -Value 1
|
||||
|
||||
#Re-enables scheduled tasks that were disabled when running the Debloat switch
|
||||
Write-Output "Enabling scheduled tasks that were disabled"
|
||||
Get-ScheduledTask XblGameSaveTaskLogon | Enable-ScheduledTask
|
||||
Get-ScheduledTask XblGameSaveTask | Enable-ScheduledTask
|
||||
Get-ScheduledTask Consolidator | Enable-ScheduledTask
|
||||
Get-ScheduledTask UsbCeip | Enable-ScheduledTask
|
||||
Get-ScheduledTask DmClient | Enable-ScheduledTask
|
||||
Get-ScheduledTask DmClientOnScenarioDownload | Enable-ScheduledTask
|
||||
|
||||
Write-Output "Re-enabling and starting WAP Push Service"
|
||||
#Enable and start WAP Push Service
|
||||
Set-Service "dmwappushservice" -StartupType Automatic
|
||||
Start-Service "dmwappushservice"
|
||||
|
||||
Write-Output "Re-enabling and starting the Diagnostics Tracking Service"
|
||||
#Enabling the Diagnostics Tracking Service
|
||||
Set-Service "DiagTrack" -StartupType Automatic
|
||||
Start-Service "DiagTrack"
|
||||
|
||||
# # Re-Enable the showing of last used files and folders (luff)
|
||||
# Write-Output "Re-enabling keys to show last used files and folders"
|
||||
# $luffKeys = @(
|
||||
# "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HomeFolderDesktop\NameSpace\DelegateFolders\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}"
|
||||
# "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HomeFolderDesktop\NameSpace\DelegateFolders\{3936E9E4-D92C-4EEE-A85A-BC16D5EA0819}"
|
||||
# )
|
||||
# ForEach ($luffKey in $luffKeys) {
|
||||
# If (! (Test-Path $lastUsedFiles)) {
|
||||
# Write-Output "Adding $luffKey to registry"
|
||||
# New-Item $luffKey
|
||||
# }
|
||||
# }
|
||||
# Write-Output "Re-enabling explorer to show last used files and folders"
|
||||
# $explorerLastUsed = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer"
|
||||
# Set-ItemProperty $explorerLastUsed HubMode -Value 0
|
||||
#
|
||||
# # Re-Enable AeroShake
|
||||
# Write-Output "Re-enabling AeroShake"
|
||||
# $aeroShake = "HKCU:\Software\Policies\Microsoft\Windows\Explorer"
|
||||
# Set-ItemProperty $aeroShake NoWindowMinimizingShortcuts -Value 0
|
||||
#
|
||||
# # Re-Locate Explorer LaunchTo
|
||||
# Write-Output "Re-Locate the Explorers Launch To (Entry Point)"
|
||||
# $LaunchTo = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
||||
# Set-ItemProperty $LaunchTo LaunchTo -Value 2
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
# "This Computer"-Button starts the explorer on the following path:
|
||||
# LaunchTo Value Description
|
||||
# 1 Computer (Harddrives, Network, etc.)
|
||||
# 2 Fast Access
|
||||
# 3 Downloads (The Download-Folder)
|
||||
|
||||
Write-Host "Set Explorers Entry Point"
|
||||
$LaunchTo = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
|
||||
Set-ItemProperty $LaunchTo LaunchTo -Value 1
|
||||
29
Windows10Debloater/Individual Scripts/Stop Edge PDF
Normal file
29
Windows10Debloater/Individual Scripts/Stop Edge PDF
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#Stops edge from taking over as the default .PDF viewer
|
||||
Write-Output "Stopping Edge from taking over as the default .PDF viewer"
|
||||
$NoPDF = "HKCR:\.pdf"
|
||||
$NoProgids = "HKCR:\.pdf\OpenWithProgids"
|
||||
$NoWithList = "HKCR:\.pdf\OpenWithList"
|
||||
If (!(Get-ItemProperty $NoPDF NoOpenWith)) {
|
||||
New-ItemProperty $NoPDF NoOpenWith
|
||||
}
|
||||
If (!(Get-ItemProperty $NoPDF NoStaticDefaultVerb)) {
|
||||
New-ItemProperty $NoPDF NoStaticDefaultVerb
|
||||
}
|
||||
If (!(Get-ItemProperty $NoProgids NoOpenWith)) {
|
||||
New-ItemProperty $NoProgids NoOpenWith
|
||||
}
|
||||
If (!(Get-ItemProperty $NoProgids NoStaticDefaultVerb)) {
|
||||
New-ItemProperty $NoProgids NoStaticDefaultVerb
|
||||
}
|
||||
If (!(Get-ItemProperty $NoWithList NoOpenWith)) {
|
||||
New-ItemProperty $NoWithList NoOpenWith
|
||||
}
|
||||
If (!(Get-ItemProperty $NoWithList NoStaticDefaultVerb)) {
|
||||
New-ItemProperty $NoWithList NoStaticDefaultVerb
|
||||
}
|
||||
|
||||
#Appends an underscore '_' to the Registry key for Edge
|
||||
$Edge = "HKCR:\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_"
|
||||
If (Test-Path $Edge) {
|
||||
Set-Item $Edge AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_
|
||||
}
|
||||
35
Windows10Debloater/Individual Scripts/Uninstall OneDrive
Normal file
35
Windows10Debloater/Individual Scripts/Uninstall OneDrive
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
Write-Output "Uninstalling OneDrive. Please wait."
|
||||
|
||||
New-PSDrive HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT
|
||||
$onedrive = "$env:SYSTEMROOT\SysWOW64\OneDriveSetup.exe"
|
||||
$ExplorerReg1 = "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
|
||||
$ExplorerReg2 = "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"
|
||||
Stop-Process -Name "OneDrive*"
|
||||
Start-Sleep 2
|
||||
If (!(Test-Path $onedrive)) {
|
||||
$onedrive = "$env:SYSTEMROOT\System32\OneDriveSetup.exe"
|
||||
}
|
||||
Start-Process $onedrive "/uninstall" -NoNewWindow -Wait
|
||||
Start-Sleep 2
|
||||
Write-Output "Stopping explorer"
|
||||
Start-Sleep 1
|
||||
.\taskkill.exe /F /IM explorer.exe
|
||||
Start-Sleep 3
|
||||
Write-Output "Removing leftover files"
|
||||
Remove-Item "$env:USERPROFILE\OneDrive" -Force -Recurse
|
||||
Remove-Item "$env:LOCALAPPDATA\Microsoft\OneDrive" -Force -Recurse
|
||||
Remove-Item "$env:PROGRAMDATA\Microsoft OneDrive" -Force -Recurse
|
||||
If (Test-Path "$env:SYSTEMDRIVE\OneDriveTemp") {
|
||||
Remove-Item "$env:SYSTEMDRIVE\OneDriveTemp" -Force -Recurse
|
||||
}
|
||||
Write-Output "Removing OneDrive from windows explorer"
|
||||
If (!(Test-Path $ExplorerReg1)) {
|
||||
New-Item $ExplorerReg1
|
||||
}
|
||||
Set-ItemProperty $ExplorerReg1 System.IsPinnedToNameSpaceTree -Value 0
|
||||
If (!(Test-Path $ExplorerReg2)) {
|
||||
New-Item $ExplorerReg2
|
||||
}
|
||||
Set-ItemProperty $ExplorerReg2 System.IsPinnedToNameSpaceTree -Value 0
|
||||
Write-Output "Restarting Explorer that was shut down before."
|
||||
Start explorer.exe -NoNewWindow
|
||||
58
Windows10Debloater/Individual Scripts/Unpin Start
Normal file
58
Windows10Debloater/Individual Scripts/Unpin Start
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# https://superuser.com/a/1442733
|
||||
#Requires -RunAsAdministrator
|
||||
|
||||
$START_MENU_LAYOUT = @"
|
||||
<LayoutModificationTemplate xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" Version="1" xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
|
||||
<LayoutOptions StartTileGroupCellWidth="6" />
|
||||
<DefaultLayoutOverride>
|
||||
<StartLayoutCollection>
|
||||
<defaultlayout:StartLayout GroupCellWidth="6" />
|
||||
</StartLayoutCollection>
|
||||
</DefaultLayoutOverride>
|
||||
</LayoutModificationTemplate>
|
||||
"@
|
||||
|
||||
$layoutFile="C:\Windows\StartMenuLayout.xml"
|
||||
|
||||
#Delete layout file if it already exists
|
||||
If(Test-Path $layoutFile)
|
||||
{
|
||||
Remove-Item $layoutFile
|
||||
}
|
||||
|
||||
#Creates the blank layout file
|
||||
$START_MENU_LAYOUT | Out-File $layoutFile -Encoding ASCII
|
||||
|
||||
$regAliases = @("HKLM", "HKCU")
|
||||
|
||||
#Assign the start layout and force it to apply with "LockedStartLayout" at both the machine and user level
|
||||
foreach ($regAlias in $regAliases){
|
||||
$basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
|
||||
$keyPath = $basePath + "\Explorer"
|
||||
IF(!(Test-Path -Path $keyPath)) {
|
||||
New-Item -Path $basePath -Name "Explorer"
|
||||
}
|
||||
Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 1
|
||||
Set-ItemProperty -Path $keyPath -Name "StartLayoutFile" -Value $layoutFile
|
||||
}
|
||||
|
||||
#Restart Explorer, open the start menu (necessary to load the new layout), and give it a few seconds to process
|
||||
Stop-Process -name explorer
|
||||
Start-Sleep -s 5
|
||||
$wshell = New-Object -ComObject wscript.shell; $wshell.SendKeys('^{ESCAPE}')
|
||||
Start-Sleep -s 5
|
||||
|
||||
#Enable the ability to pin items again by disabling "LockedStartLayout"
|
||||
foreach ($regAlias in $regAliases){
|
||||
$basePath = $regAlias + ":\SOFTWARE\Policies\Microsoft\Windows"
|
||||
$keyPath = $basePath + "\Explorer"
|
||||
Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0
|
||||
}
|
||||
|
||||
#Restart Explorer and delete the layout file
|
||||
Stop-Process -name explorer
|
||||
|
||||
# Uncomment the next line to make clean start menu default for all new users
|
||||
#Import-StartLayout -LayoutPath $layoutFile -MountPath $env:SystemDrive\
|
||||
|
||||
Remove-Item $layoutFile
|
||||
Loading…
Add table
Add a link
Reference in a new issue