Advertisement
Transigence

Disable "Group By" in Explorer and Dialogs

Feb 17th, 2021
1,337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. gci 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags' -recurse |
  2.  
  3. ?{$_.GetValueNames() -contains 'GroupView'} |
  4.  
  5. ?{$_.GetValue('GroupView') -ne 0} | %{
  6.  
  7.    $splat = @{
  8.  
  9.       'Path'  = $_.PSPath
  10.  
  11.       'Name'  = 'GroupView'
  12.  
  13.       'Value' = 0
  14.  
  15.    }
  16.  
  17.    Set-ItemProperty @splat
  18.  
  19.    $splat.Name  = 'GroupByKey:PID'
  20.  
  21.    $splat.Value = 0
  22.  
  23.    Set-ItemProperty @splat
  24.  
  25.    $splat.Name  = 'GroupByKey:FMTID'
  26.  
  27.    $splat.Value = '{00000000-0000-0000-0000-000000000000}'
  28.  
  29.    Set-ItemProperty @splat
  30.  
  31. }
  32.  
  33. gps explorer | spps
  34.  
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement