mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Fixed a few issues
* Fixed invalid path that broke the 'ClearStart' option * Added more info about the 'ClearStart' option * Removed old reference
This commit is contained in:
@@ -32,7 +32,7 @@ In this mode you'll be able to make any of the following changes:
|
||||
- Disable tips, tricks and suggestions in the start menu and settings, and sync provider ads in windows explorer.
|
||||
- Show hidden files, folders and drives.
|
||||
- Show file extensions for known file types.
|
||||
- Remove all pinned apps from the start menu (Windows 11 update 22H2 or later only)
|
||||
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only)
|
||||
- Align taskbar icons to the left. (Windows 11 only)
|
||||
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
||||
- Hide the taskview button from the taskbar. (Windows 11 only)
|
||||
@@ -87,7 +87,7 @@ To run the script without any user input, simply add parameters at the end, exam
|
||||
| -ShowSearchBoxTb | Show search box on the taskbar. (Windows 11 only) |
|
||||
| -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon from the taskbar. |
|
||||
| -HideChat | Hide the chat (meet now) icon from the taskbar. |
|
||||
| -ClearStart | Remove all pinned apps from the start menu. (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) |
|
||||
| -HideOnedrive | Hide the onedrive folder in the windows explorer sidepanel. (Windows 10 only) |
|
||||
| -Hide3dObjects | Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only) |
|
||||
| -HideMusic | Hide the music folder under 'This pc' in windows explorer. (Windows 10 only) |
|
||||
|
||||
@@ -114,7 +114,7 @@ function ClearStartMenu {
|
||||
Write-Output $message
|
||||
|
||||
# Path to start menu template
|
||||
$startmenuTemplate = "./Start/start2.bin"
|
||||
$startmenuTemplate = "$PSScriptRoot/Start/start2.bin"
|
||||
|
||||
# Get all user profile folders
|
||||
$usersStartMenu = get-childitem -path "C:\Users\*\AppData\Local\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState"
|
||||
@@ -199,7 +199,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
||||
'1' {
|
||||
Clear-Host
|
||||
Write-Output "-------------------------------------------------------------------------------------------"
|
||||
Write-Output " Win11Debloat Script - Windows 10 Default Configuration"
|
||||
Write-Output " Win11Debloat Script - Default Configuration"
|
||||
Write-Output "-------------------------------------------------------------------------------------------"
|
||||
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
|
||||
$PSBoundParameters.Add('DisableTelemetry', $DisableTelemetry)
|
||||
@@ -223,7 +223,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
||||
Write-Output " Win11Debloat Script - Custom Configuration"
|
||||
Write-Output "-------------------------------------------------------------------------------------------"
|
||||
|
||||
if ($( Read-Host -Prompt "Remove the pre-installed windows apps? (y/n)" ) -eq 'y') {
|
||||
if ($( Read-Host -Prompt "Remove pre-installed bloatware apps? (y/n)" ) -eq 'y') {
|
||||
$PSBoundParameters.Add('RemoveApps', $RemoveApps)
|
||||
|
||||
Write-Output ""
|
||||
@@ -261,7 +261,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
||||
|
||||
# Only show this option for windows 11 users
|
||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
||||
if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? (y/n)" ) -eq 'y') {
|
||||
if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users (y/n)" ) -eq 'y') {
|
||||
$PSBoundParameters.Add('ClearStart', $ClearStart)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user