From 80fdfbf0eed45c0cb750edb111050df909ab1843 Mon Sep 17 00:00:00 2001
From: Jeffrey <9938813+Raphire@users.noreply.github.com>
Date: Mon, 24 Apr 2023 15:30:25 +0200
Subject: [PATCH] Updated instructions in README Renamed
DisableWindowsSuggestions parameter to DisableSuggestions for brevity, old
parameter will still work
---
README.md | 15 +++++++++------
Win10Debloat.ps1 | 11 ++++++++---
2 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index dbf55ae..56bc51b 100644
--- a/README.md
+++ b/README.md
@@ -34,19 +34,22 @@ Disclaimer: I believe this script to be completely safe to run, but use this scr
### Easy method:
1. [Download the latest version of the script](https://github.com/Raphire/Win10Debloat/archive/master.zip), and extract the .ZIP file to your desired location.
2. Navigate to the Win10Debloat folder
-3. Double click the 'Run.bat' file to start the script.
+3. Double click the 'Run.bat' file to start the script. Note: If the console window immediately closes and nothing happens, try the advanced method below.
4. Accept the windows UAC prompt to run the script as administrator, this is required for the script to function.
-5. Select either default, or custom setup depending on what changes you want to make. Custom setup will allow you to choose exactly which changes you want to make, and which changes you want to skip.
+5. A new powershell window will now open, showing the Win10Debloat menu. Select either the default or custom setup to continue.
### Advanced method:
-This method gives you the option to run the script with certain arguments to tailor the behaviour of the script to your needs without requiring any user input during runtime, making it quicker and easier to deploy on a large number of systems.
+This method gives you the option to run the script with certain parameters to tailor the behaviour of the script to your needs without requiring any user input during runtime, making it quicker and easier to deploy on a large number of systems.
1. [Download the latest version of the script](https://github.com/Raphire/Win10Debloat/archive/master.zip), and extract the .ZIP file to your desired location.
2. Open powershell as an administrator.
3. Enable powershell execution by entering the following command: Set-ExecutionPolicy Unrestricted -Force
4. In powershell, navigate to the directory where the files were extracted. Example: cd c:\\Win10Debloat
-5. Enter this into powershell to run the script: .\Win10Debloat.ps1 To run the script without any user input you can add arguments at the end, for example: .\Win10Debloat.ps1 -RemoveApps -DisableBing
+5. Enter this into powershell to run the script: .\Win10Debloat.ps1
+6. A menu will now open. Select either the default or custom setup to continue.
-| Argument | Description |
+To run the script without any user input, simply add parameters at the end, example: .\Win10Debloat.ps1 -RemoveApps -DisableBing
+
+| Parameter | Description |
| --------- | ----------- |
| -RunDefaults | Run the script with windows 10 default settings. |
| -RunWin11Defaults | Run the script with windows 11 default settings. |
@@ -54,7 +57,7 @@ This method gives you the option to run the script with certain arguments to tai
| -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. |
| -DisableBing | Disable bing & cortana in windows search. |
| -DisableLockscreenTips | Disable tips & tricks on the lockscreen. |
-| -DisableWindowsSuggestions | Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer. |
+| -DisableSuggestions | Disable tips, tricks and suggestions in the startmenu and settings, and sync provider ads in windows explorer. |
| -DisableChat | Hide the chat (meet now) icon on the taskbar. |
| -DisableWidgets | Hide the widget (news and interests) icon on the taskbar. |
| -DisableOnedrive | Hide the onedrive folder in the windows explorer sidepanel. |
diff --git a/Win10Debloat.ps1 b/Win10Debloat.ps1
index b0b0eac..b464ce5 100644
--- a/Win10Debloat.ps1
+++ b/Win10Debloat.ps1
@@ -11,6 +11,7 @@ param
[Parameter(ValueFromPipeline=$true)][switch]$DisableBing,
[Parameter(ValueFromPipeline=$true)][switch]$DisableLockscreenTips,
[Parameter(ValueFromPipeline=$true)][switch]$DisableWindowsSuggestions,
+ [Parameter(ValueFromPipeline=$true)][switch]$DisableSuggestions,
[Parameter(ValueFromPipeline=$true)][switch]$DisableChat,
[Parameter(ValueFromPipeline=$true)][switch]$DisableWidgets,
[Parameter(ValueFromPipeline=$true)][switch]$DisableOnedrive,
@@ -209,7 +210,7 @@ if((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ((
$PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry)
$PSBoundParameters.Add('DisableBing', $DisableBing)
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
- $PSBoundParameters.Add('DisableWindowsSuggestions', $DisableWindowsSuggestions)
+ $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions)
$PSBoundParameters.Add('DisableChat', $DisableChat)
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
$PSBoundParameters.Add('Disable3dObjects', $Disable3dObjects)
@@ -228,7 +229,7 @@ if((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ((
$PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry)
$PSBoundParameters.Add('DisableBing', $DisableBing)
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
- $PSBoundParameters.Add('DisableWindowsSuggestions', $DisableWindowsSuggestions)
+ $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions)
$PSBoundParameters.Add('DisableChat', $DisableChat)
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
}
@@ -262,7 +263,7 @@ if((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ((
if($( Read-Host -Prompt "Disable tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer? (y/n)" ) -eq 'y')
{
- $PSBoundParameters.Add('DisableWindowsSuggestions', $DisableWindowsSuggestions)
+ $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions)
}
if($( Read-Host -Prompt "Do you want to hide any icons from the taskbar? (y/n)" ) -eq 'y')
@@ -353,6 +354,10 @@ switch ($PSBoundParameters.Keys)
{
RegImport "> Disabling tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
}
+ 'DisableSuggestions'
+ {
+ RegImport "> Disabling tips, tricks and suggestions in the startmenu and settings, and ads in windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
+ }
'DisableChat'
{
RegImport "> Hiding the chat icon on the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg