mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-01-01 08:56:21 +00:00
Add option re-add all common folders under 'This PC' in File Explorer
This commit is contained in:
@@ -36,6 +36,7 @@ File Explorer
|
|||||||
- Change the default location that File Explorer opens to.
|
- Change the default location that File Explorer opens to.
|
||||||
- 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.
|
||||||
|
- Add all common folders (Desktop, Downloads, Etc.) back to 'This PC' in File Explorer. (W11 only)
|
||||||
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
|
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
|
||||||
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
|
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
|
||||||
- Hide duplicate removable drive entries from the File Explorer navigation pane.
|
- Hide duplicate removable drive entries from the File Explorer navigation pane.
|
||||||
|
|||||||
3
Get.ps1
3
Get.ps1
@@ -4,6 +4,7 @@ param (
|
|||||||
[switch]$Sysprep,
|
[switch]$Sysprep,
|
||||||
[string]$LogPath,
|
[string]$LogPath,
|
||||||
[string]$User,
|
[string]$User,
|
||||||
|
[switch]$NoRestartExplorer,
|
||||||
[switch]$CreateRestorePoint,
|
[switch]$CreateRestorePoint,
|
||||||
[switch]$RunAppsListGenerator, [switch]$RunAppConfigurator,
|
[switch]$RunAppsListGenerator, [switch]$RunAppConfigurator,
|
||||||
[switch]$RunDefaults,
|
[switch]$RunDefaults,
|
||||||
@@ -66,7 +67,7 @@ param (
|
|||||||
[switch]$ExplorerToThisPC,
|
[switch]$ExplorerToThisPC,
|
||||||
[switch]$ExplorerToDownloads,
|
[switch]$ExplorerToDownloads,
|
||||||
[switch]$ExplorerToOneDrive,
|
[switch]$ExplorerToOneDrive,
|
||||||
[switch]$NoRestartExplorer,
|
[switch]$AddFoldersToThisPC,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
[switch]$DisableMusic, [switch]$HideMusic,
|
[switch]$DisableMusic, [switch]$HideMusic,
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
|||||||
- Change the default location that File Explorer opens to.
|
- Change the default location that File Explorer opens to.
|
||||||
- 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.
|
||||||
|
- Add all common folders (Desktop, Downloads, etc.) back to 'This PC' in File Explorer. (W11 only)
|
||||||
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
|
- Hide the Home or Gallery section from the File Explorer navigation pane. (W11 only)
|
||||||
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
|
- Hide the 3D objects, music or OneDrive folder from the File Explorer navigation pane. (W10 only)
|
||||||
- Hide duplicate removable drive entries from the File Explorer navigation pane, 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.
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ param (
|
|||||||
[switch]$Sysprep,
|
[switch]$Sysprep,
|
||||||
[string]$LogPath,
|
[string]$LogPath,
|
||||||
[string]$User,
|
[string]$User,
|
||||||
|
[switch]$NoRestartExplorer,
|
||||||
[switch]$CreateRestorePoint,
|
[switch]$CreateRestorePoint,
|
||||||
[switch]$RunAppsListGenerator, [switch]$RunAppConfigurator,
|
[switch]$RunAppsListGenerator, [switch]$RunAppConfigurator,
|
||||||
[switch]$RunDefaults,
|
[switch]$RunDefaults,
|
||||||
@@ -68,7 +69,7 @@ param (
|
|||||||
[switch]$ExplorerToThisPC,
|
[switch]$ExplorerToThisPC,
|
||||||
[switch]$ExplorerToDownloads,
|
[switch]$ExplorerToDownloads,
|
||||||
[switch]$ExplorerToOneDrive,
|
[switch]$ExplorerToOneDrive,
|
||||||
[switch]$NoRestartExplorer,
|
[switch]$AddFoldersToThisPC,
|
||||||
[switch]$HideOnedrive, [switch]$DisableOnedrive,
|
[switch]$HideOnedrive, [switch]$DisableOnedrive,
|
||||||
[switch]$Hide3dObjects, [switch]$Disable3dObjects,
|
[switch]$Hide3dObjects, [switch]$Disable3dObjects,
|
||||||
[switch]$HideMusic, [switch]$DisableMusic,
|
[switch]$HideMusic, [switch]$DisableMusic,
|
||||||
@@ -152,6 +153,7 @@ $script:Features = @{
|
|||||||
"ExplorerToThisPC" = "Change the default location that File Explorer opens to 'This PC'"
|
"ExplorerToThisPC" = "Change the default location that File Explorer opens to 'This PC'"
|
||||||
"ExplorerToDownloads" = "Change the default location that File Explorer opens to 'Downloads'"
|
"ExplorerToDownloads" = "Change the default location that File Explorer opens to 'Downloads'"
|
||||||
"ExplorerToOneDrive" = "Change the default location that File Explorer opens to 'OneDrive'"
|
"ExplorerToOneDrive" = "Change the default location that File Explorer opens to 'OneDrive'"
|
||||||
|
"AddFoldersToThisPC" = "Add all common folders (Desktop, Downloads, etc.) back to 'This PC' in File Explorer"
|
||||||
"HideHome" = "Hide the Home section from the File Explorer sidepanel (Windows 11 only)"
|
"HideHome" = "Hide the Home section from the File Explorer sidepanel (Windows 11 only)"
|
||||||
"HideGallery" = "Hide the Gallery section from the File Explorer sidepanel (Windows 11 only)"
|
"HideGallery" = "Hide the Gallery section from the File Explorer sidepanel (Windows 11 only)"
|
||||||
"HideDupliDrive" = "Hide duplicate removable drive entries from the File Explorer sidepanel"
|
"HideDupliDrive" = "Hide duplicate removable drive entries from the File Explorer sidepanel"
|
||||||
@@ -1735,6 +1737,12 @@ function ShowCustomModeOptions {
|
|||||||
if ($WinVersion -ge 22000) {
|
if ($WinVersion -ge 22000) {
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Add all common folders (Desktop, Downloads, etc.) back to 'This PC' in File Explorer? (y/n)" ) -eq 'y') {
|
||||||
|
AddParameter 'HideHome'
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide the Home 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 'HideHome'
|
AddParameter 'HideHome'
|
||||||
}
|
}
|
||||||
@@ -2345,6 +2353,10 @@ switch ($script:Params.Keys) {
|
|||||||
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
|
||||||
}
|
}
|
||||||
|
'AddFoldersToThisPC' {
|
||||||
|
RegImport "> Adding all common folders (Desktop, Downloads, etc.) back to This PC in File Explorer..." "Add_All_Folders_Under_This_PC.reg"
|
||||||
|
continue
|
||||||
|
}
|
||||||
'HideHome' {
|
'HideHome' {
|
||||||
RegImport "> Hiding the home section from the File Explorer navigation pane..." "Hide_Home_from_Explorer.reg"
|
RegImport "> Hiding the home section from the File Explorer navigation pane..." "Hide_Home_from_Explorer.reg"
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user