mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Added option to hide the 'Home' section from the File Explorer navigation pane
Fixed certain options not working in Sysprep mode, see #106
This commit is contained in:
1
Get.ps1
1
Get.ps1
@@ -31,6 +31,7 @@ param (
|
|||||||
[switch]$ClearStart,
|
[switch]$ClearStart,
|
||||||
[switch]$ClearStartAllUsers,
|
[switch]$ClearStartAllUsers,
|
||||||
[switch]$RevertContextMenu,
|
[switch]$RevertContextMenu,
|
||||||
|
[switch]$HideHome,
|
||||||
[switch]$HideGallery,
|
[switch]$HideGallery,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -35,9 +35,9 @@ You can pick and choose exactly which modifications you want the script to make,
|
|||||||
|
|
||||||
- Show hidden files, folders and drives.
|
- Show hidden files, folders and drives.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Hide the gallery section from the File Explorer sidepanel. (Windows 11 only)
|
- Hide the Home or Gallery section from the File Explorer navigation pane. (Windows 11 only)
|
||||||
- Hide the 3D objects, music or onedrive folder from the File Explorer sidepanel. (Windows 10 only)
|
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (Windows 10 only)
|
||||||
- Hide duplicate removable drive entries from the File Explorer sidepanel, so only the entry under 'This PC' remains.
|
- Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under 'This PC' remains.
|
||||||
|
|
||||||
#### Taskbar
|
#### Taskbar
|
||||||
|
|
||||||
@@ -317,7 +317,7 @@ The quick and advanced method support parameters to tailor the behaviour of the
|
|||||||
| -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. |
|
||||||
| -HideDupliDrive | Hide duplicate removable drive entries from the File Explorer sidepanel, so only the entry under 'This PC' remains. |
|
| -HideDupliDrive | Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under 'This PC' remains. |
|
||||||
| -TaskbarAlignLeft | Align taskbar icons to the left. (Windows 11 only) |
|
| -TaskbarAlignLeft | Align taskbar icons to the left. (Windows 11 only) |
|
||||||
| -HideSearchTb | Hide search icon from the taskbar. (Windows 11 only) |
|
| -HideSearchTb | Hide search icon from the taskbar. (Windows 11 only) |
|
||||||
| -ShowSearchIconTb | Show search icon on the taskbar. (Windows 11 only) |
|
| -ShowSearchIconTb | Show search icon on the taskbar. (Windows 11 only) |
|
||||||
@@ -326,10 +326,11 @@ The quick and advanced method support parameters to tailor the behaviour of the
|
|||||||
| -HideTaskview | Hide the taskview button from the taskbar. (Windows 11 only) |
|
| -HideTaskview | Hide the taskview button from the taskbar. (Windows 11 only) |
|
||||||
| -HideChat | Hide the chat (meet now) icon from the taskbar. |
|
| -HideChat | Hide the chat (meet now) icon from the taskbar. |
|
||||||
| -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon from the taskbar. |
|
| -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon from the taskbar. |
|
||||||
| -DisableCopilot | Disable Windows copilot. (Windows 11 only) |
|
| -DisableCopilot | Disable and remove Windows Copilot. (Windows 11 only) |
|
||||||
| -DisableRecall | Disable Windows Recall snapshots. (Windows 11 only) |
|
| -DisableRecall | Disable Windows Recall snapshots. (Windows 11 only) |
|
||||||
| -HideGallery | Hide the gallery section from the File Explorer sidepanel. (Windows 11 only) |
|
| -HideHome | Hide the home section from the File Explorer navigation pane and adds a toggle in the File Explorer folder options. (Windows 11 only) |
|
||||||
| -HideOnedrive | Hide the onedrive folder from the File Explorer sidepanel. (Windows 10 only) |
|
| -HideGallery | Hide the gallery section from the File Explorer navigation pane and adds a toggle in the File Explorer folder options. (Windows 11 only) |
|
||||||
|
| -HideOnedrive | Hide the OneDrive folder from the File Explorer navigation pane. (Windows 10 only) |
|
||||||
| -Hide3dObjects | Hide the 3D objects folder under 'This pc' in File Explorer. (Windows 10 only) |
|
| -Hide3dObjects | Hide the 3D objects folder under 'This pc' in File Explorer. (Windows 10 only) |
|
||||||
| -HideMusic | Hide the music folder under 'This pc' in File Explorer. (Windows 10 only) |
|
| -HideMusic | Hide the music folder under 'This pc' in File Explorer. (Windows 10 only) |
|
||||||
| -HideIncludeInLibrary | Hide the 'Include in library' option in the context menu. (Windows 10 only) |
|
| -HideIncludeInLibrary | Hide the 'Include in library' option in the context menu. (Windows 10 only) |
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
BIN
Regfiles/Hide_Home_from_Explorer.reg
Normal file
BIN
Regfiles/Hide_Home_from_Explorer.reg
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Regfiles/Sysprep/Hide_Home_from_Explorer.reg
Normal file
BIN
Regfiles/Sysprep/Hide_Home_from_Explorer.reg
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Regfiles/Undo/Show_Home_from_Explorer.reg
Normal file
BIN
Regfiles/Undo/Show_Home_from_Explorer.reg
Normal file
Binary file not shown.
@@ -33,6 +33,7 @@ param (
|
|||||||
[switch]$ClearStart,
|
[switch]$ClearStart,
|
||||||
[switch]$ClearStartAllUsers,
|
[switch]$ClearStartAllUsers,
|
||||||
[switch]$RevertContextMenu,
|
[switch]$RevertContextMenu,
|
||||||
|
[switch]$HideHome,
|
||||||
[switch]$HideGallery,
|
[switch]$HideGallery,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
@@ -927,8 +928,8 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP
|
|||||||
if ($WinVersion -ge 22621){
|
if ($WinVersion -ge 22621){
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Disable Windows Copilot? This applies to all users (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Disable and remove Windows Copilot? This applies to all users (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'DisableCopilot' 'Disable Windows Copilot'
|
AddParameter 'DisableCopilot' 'Disable and remove Windows Copilot'
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
@@ -1029,8 +1030,14 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP
|
|||||||
if ($WinVersion -ge 22000){
|
if ($WinVersion -ge 22000){
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide the gallery section from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Hide the Home section from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'HideGallery' 'Hide the gallery section from the File Explorer sidepanel'
|
AddParameter 'HideHome' 'Hide the Home section from the File Explorer sidepanel'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Hide the Gallery section from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'HideGallery' 'Hide the Gallery section from the File Explorer sidepanel'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1047,8 +1054,8 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or ($SPP
|
|||||||
if ($( Read-Host -Prompt "Do you want to hide any folders from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Do you want to hide any folders from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide the onedrive folder from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Hide the OneDrive folder from the File Explorer sidepanel? (y/n)" ) -eq 'y') {
|
||||||
AddParameter 'HideOnedrive' 'Hide the onedrive folder in the File Explorer sidepanel'
|
AddParameter 'HideOnedrive' 'Hide the OneDrive folder in the File Explorer sidepanel'
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
@@ -1326,6 +1333,10 @@ else {
|
|||||||
RegImport "> Enabling file extensions for known file types..." "Show_Extensions_For_Known_File_Types.reg"
|
RegImport "> Enabling file extensions for known file types..." "Show_Extensions_For_Known_File_Types.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
'HideHome' {
|
||||||
|
RegImport "> Hiding the home section from the File Explorer navigation pane..." "Hide_Home_from_Explorer.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
'HideGallery' {
|
'HideGallery' {
|
||||||
RegImport "> Hiding the gallery section from the File Explorer navigation pane..." "Hide_Gallery_from_Explorer.reg"
|
RegImport "> Hiding the gallery section from the File Explorer navigation pane..." "Hide_Gallery_from_Explorer.reg"
|
||||||
continue
|
continue
|
||||||
@@ -1335,7 +1346,7 @@ else {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
{$_ -in "HideOnedrive", "DisableOnedrive"} {
|
{$_ -in "HideOnedrive", "DisableOnedrive"} {
|
||||||
RegImport "> Hiding the onedrive folder from the File Explorer navigation pane..." "Hide_Onedrive_Folder.reg"
|
RegImport "> Hiding the OneDrive folder from the File Explorer navigation pane..." "Hide_Onedrive_Folder.reg"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
{$_ -in "Hide3dObjects", "Disable3dObjects"} {
|
{$_ -in "Hide3dObjects", "Disable3dObjects"} {
|
||||||
|
|||||||
Reference in New Issue
Block a user