Skip to content

Commit

Permalink
Add "Hide Network icon from Explorer namespace", relates to Disassemb…
Browse files Browse the repository at this point in the history
  • Loading branch information
Disassembler0 committed Jul 15, 2020
1 parent 88d5a61 commit c45d596
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Default.preset
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ HideVideosFromThisPC # ShowVideosInThisPC
# HideVideosFromExplorer # ShowVideosInExplorer
Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
# Hide3DObjectsFromExplorer # Show3DObjectsInExplorer
# HideNetworkFromExplorer # ShowNetworkInExplorer
# HideIncludeInLibraryMenu # ShowIncludeInLibraryMenu
# HideGiveAccessToMenu # ShowGiveAccessToMenu
# HideShareMenu # ShowShareMenu
Expand Down
12 changes: 12 additions & 0 deletions Win10.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3013,6 +3013,18 @@ Function Show3DObjectsInExplorer {
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Name "ThisPCPolicy" -ErrorAction SilentlyContinue
}

# Hide Network icon from Explorer namespace - Hides the icon also from personal folders and open/save dialogs
Function HideNetworkFromExplorer {
Write-Output "Hiding Network icon from Explorer namespace..."
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" -Name "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -Type DWord -Value 1
}

# Show Network icon in Explorer namespace
Function ShowNetworkInExplorer {
Write-Output "Showing Network icon in Explorer namespace..."
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" -Name "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" -ErrorAction SilentlyContinue
}

# Hide 'Include in library' context menu item
Function HideIncludeInLibraryMenu {
Write-Output "Hiding 'Include in library' context menu item..."
Expand Down

0 comments on commit c45d596

Please sign in to comment.