Fixed 'DisableLockscrTips' parameter not working (#19)

This commit is contained in:
Raphire
2023-12-24 01:01:50 +01:00
parent 5160cd4dcd
commit c808af0d13
2 changed files with 33 additions and 32 deletions

View File

@@ -215,7 +215,7 @@ This method gives you the option to run the script with certain parameters to ta
To run the script without any user input, simply add parameters at the end, example: `.\Win11Debloat.ps1 -RemoveApps -DisableBing -Silent` To run the script without any user input, simply add parameters at the end, example: `.\Win11Debloat.ps1 -RemoveApps -DisableBing -Silent`
| Parameter | Description | | Parameter | Description |
| --------- | ----------- | | :-------: | ----------- |
| -Silent | Suppresses all interactive prompts, so the script will run without requiring any user input. | | -Silent | Suppresses all interactive prompts, so the script will run without requiring any user input. |
| -RunDefaults | Run the script with the default settings. | | -RunDefaults | Run the script with the default settings. |
| -RemoveApps | Remove all bloatware apps from [this list](#apps-that-are-removed). | | -RemoveApps | Remove all bloatware apps from [this list](#apps-that-are-removed). |
@@ -226,8 +226,8 @@ To run the script without any user input, simply add parameters at the end, exam
| -ClearStart | Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) | | -ClearStart | Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) |
| -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. | | -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. |
| -DisableBing | Disable bing search, bing AI & cortana in windows search. | | -DisableBing | Disable bing search, bing AI & cortana in windows search. |
| -DisableLockscrTips | Disable tips & tricks on the lockscreen. |
| -DisableSuggestions | Disable tips, tricks, suggestions and ads in start, settings, notifications and windows explorer. | | -DisableSuggestions | Disable tips, tricks, suggestions and ads in start, settings, notifications and windows explorer. |
| <pre>-DisableLockscreenTips</pre> | Disable tips & tricks on the lockscreen. |
| -RevertContextMenu | Restore the old Windows 10 style context menu. (Windows 11 only) | | -RevertContextMenu | Restore the old Windows 10 style context menu. (Windows 11 only) |
| -ShowHiddenFolders | Show hidden files, folders and drives. | | -ShowHiddenFolders | Show hidden files, folders and drives. |
| -ShowKnownFileExt | Show file extensions for known file types. | | -ShowKnownFileExt | Show file extensions for known file types. |

View File

@@ -14,6 +14,7 @@ param
[Parameter(ValueFromPipeline = $true)][switch]$DisableTelemetry, [Parameter(ValueFromPipeline = $true)][switch]$DisableTelemetry,
[Parameter(ValueFromPipeline = $true)][switch]$DisableBingSearches, [Parameter(ValueFromPipeline = $true)][switch]$DisableBingSearches,
[Parameter(ValueFromPipeline = $true)][switch]$DisableBing, [Parameter(ValueFromPipeline = $true)][switch]$DisableBing,
[Parameter(ValueFromPipeline = $true)][switch]$DisableLockscrTips,
[Parameter(ValueFromPipeline = $true)][switch]$DisableLockscreenTips, [Parameter(ValueFromPipeline = $true)][switch]$DisableLockscreenTips,
[Parameter(ValueFromPipeline = $true)][switch]$DisableWindowsSuggestions, [Parameter(ValueFromPipeline = $true)][switch]$DisableWindowsSuggestions,
[Parameter(ValueFromPipeline = $true)][switch]$DisableSuggestions, [Parameter(ValueFromPipeline = $true)][switch]$DisableSuggestions,