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 ...