Added setting to remove windows explorer ads & Improved 'Disable Windows Suggestions' setting

This commit is contained in:
Raphire
2022-08-28 22:17:32 +02:00
parent 6a34bc53ff
commit 2ddcfeddfb
6 changed files with 20 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ param
[Parameter(ValueFromPipeline=$true)][switch]$Disable3dObjects,
[Parameter(ValueFromPipeline=$true)][switch]$DisableMusic,
[Parameter(ValueFromPipeline=$true)][switch]$DisableBingSearches,
[Parameter(ValueFromPipeline=$true)][switch]$DisableExplorerSyncAds,
[Parameter(ValueFromPipeline=$true)][switch]$DisableLockscreenTips,
[Parameter(ValueFromPipeline=$true)][switch]$DisableWindowsSuggestions,
[Parameter(ValueFromPipeline=$true)][switch]$DisableIncludeInLibrary,
@@ -142,6 +143,7 @@ if((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ((
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
$PSBoundParameters.Add('Disable3dObjects', $Disable3dObjects)
$PSBoundParameters.Add('DisableBingSearches', $DisableBingSearches)
$PSBoundParameters.Add('DisableExplorerSyncAds', $DisableExplorerSyncAds)
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
$PSBoundParameters.Add('DisableWindowsSuggestions', $DisableWindowsSuggestions)
$PSBoundParameters.Add('DisableIncludeInLibrary', $DisableIncludeInLibrary)
@@ -154,8 +156,9 @@ if((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ((
Write-Output "-------------------------------------------------------------------------------------------"
Write-Output " Win10Debloat Script - Windows 11 Default Configuration"
Write-Output "-------------------------------------------------------------------------------------------"
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
$PSBoundParameters.Add('DisableBingSearches', $DisableBingSearches)
$PSBoundParameters.Add('DisableExplorerSyncAds', $DisableExplorerSyncAds)
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
$PSBoundParameters.Add('DisableWindowsSuggestions', $DisableWindowsSuggestions)
}
@@ -191,6 +194,11 @@ if((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ((
$PSBoundParameters.Add('DisableBingSearches', $DisableBingSearches)
}
if($( Read-Host -Prompt "Disable sync provider ads in windows explorer? (y/n)" ) -eq 'y')
{
$PSBoundParameters.Add('DisableExplorerSyncAds', $DisableExplorerSyncAds)
}
if($( Read-Host -Prompt "Disable tips & tricks on the lockscreen? (y/n)" ) -eq 'y')
{
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)