From 5b9ee8d98b58d5fd0d25a8fb608104fe7ff25a51 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 29 May 2022 11:35:55 +0200 Subject: [PATCH] script set-exlorer-viewmode.ps1 now deletes all GrouBy settings for explorer in current user, fix for issue #26 --- tools/set-exlorer-viewmode.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/set-exlorer-viewmode.ps1 b/tools/set-exlorer-viewmode.ps1 index fc51296..f83b6fa 100644 --- a/tools/set-exlorer-viewmode.ps1 +++ b/tools/set-exlorer-viewmode.ps1 @@ -24,9 +24,15 @@ Copy-Item $src "$(Split-Path $dst)" -Recurse # Set all 'LogicalViewMode' values to the desired style Get-ChildItem $topViews | % { + $key2edit = (get-item $_.PSParentPath).OpenSubKey($_.PSChildName, $True); $key2edit.SetValue('LogicalViewMode', $ViewMode) + + # delete ANY "GroupBy" mode in any folder of explorer ... + $key2edit.SetValue('GroupBy','') + $key2edit.Close() + } # restart explorer ...