New
#11
List View
Code:###***-- Run from an Admin PowerShell console --***### $RegFile = "$Env:Temp\AllFolders-SameColumns.reg" $Content = @" Windows Registry Editor Version 5.00`n [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults]`n [-HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]`n [-HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\Bags]`n "@ # Content $Prepend = '[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\' $Append = @" ] "Mode"=dword:00000003 "LogicalViewMode"=dword:00000004 "IconSize"=dword:00000010`n`n "@ # $Append $FT = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes' $Include = 'Documents|Downloads|Generic|Home|Music|Pictures|Searches|UserFiles|UsersLibraries|Videos' gci $FT | Get-ItemProperty | ? CanonicalName -match $Include | Select -expand PSChildName | ForEach{ $Content += "$Prepend$_$Append" } $Content | Set-Content $RegFile Reg import $RegFile gps explorer | spps