You are on page 1of 1

$ErrorActionPreference = "SilentlyContinue"

New-ItemProperty -Path "HKCU:\Software\Classes\Local Settings\Software\Microsoft\


Windows\Shell\Bags" -Name "BagMRU Size" -Value 10000 -PropertyType DWORD -Force
New-ItemProperty -Path "HKCU:\Software\Classes\Local Settings\Software\Microsoft\
Windows\Shell\Bags\AllFolders\Shell" -Name "GroupView" -Value 0 -PropertyType DWORD
-Force
Get-ChildItem "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\
Shell\Bags" | ForEach-Object {
Get-ChildItem "Registry::$_\Shell" | ForEach-Object {
New-ItemProperty -Path "Registry::$_" -Name "GroupView" -Value 0 -PropertyType
DWORD -Force
}
Get-ChildItem "Registry::$_\ComDlg" | ForEach-Object {
New-ItemProperty -Path "Registry::$_" -Name "GroupView" -Value 0 -PropertyType
DWORD -Force
}
Get-ChildItem "Registry::$_\ComDlgLegacy" | ForEach-Object {
New-ItemProperty -Path "Registry::$_" -Name "GroupView" -Value 0 -PropertyType
DWORD -Force
}
}

You might also like