Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit c45d596

Browse files
committed
Add "Hide Network icon from Explorer namespace", relates to #314
1 parent 88d5a61 commit c45d596

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Default.preset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ HideVideosFromThisPC # ShowVideosInThisPC
198198
# HideVideosFromExplorer # ShowVideosInExplorer
199199
Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
200200
# Hide3DObjectsFromExplorer # Show3DObjectsInExplorer
201+
# HideNetworkFromExplorer # ShowNetworkInExplorer
201202
# HideIncludeInLibraryMenu # ShowIncludeInLibraryMenu
202203
# HideGiveAccessToMenu # ShowGiveAccessToMenu
203204
# HideShareMenu # ShowShareMenu

Win10.psm1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3013,6 +3013,18 @@ Function Show3DObjectsInExplorer {
30133013
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Name "ThisPCPolicy" -ErrorAction SilentlyContinue
30143014
}
30153015

3016+
# Hide Network icon from Explorer namespace - Hides the icon also from personal folders and open/save dialogs
3017+
Function HideNetworkFromExplorer {
3018+
Write-Output "Hiding Network icon from Explorer namespace..."
3019+
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" -Name "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -Type DWord -Value 1
3020+
}
3021+
3022+
# Show Network icon in Explorer namespace
3023+
Function ShowNetworkInExplorer {
3024+
Write-Output "Showing Network icon in Explorer namespace..."
3025+
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" -Name "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -ErrorAction SilentlyContinue
3026+
}
3027+
30163028
# Hide 'Include in library' context menu item
30173029
Function HideIncludeInLibraryMenu {
30183030
Write-Output "Hiding 'Include in library' context menu item..."

0 commit comments

Comments
 (0)