Multi-OEM/Retail Project {MRP} - Mk3

Discussion in 'MDL Projects and Applications' started by mxman2k, Oct 15, 2016.

  1. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    MRP v130.0 is almost ready - all being well by Tuesday afternoon. :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    867
    1,463
    30
  3. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    MRP v130.0 Baseline has been uploaded, 2nd post's download link, password and hashes updated. :)

    + Added new Win10 Options:

    1} Multi-Selection for controlling Windows Updates, you can 'pause' Feature/Build, Quality/Normal or Both. This is experimental and may not always work as expected also if you un-pause then re-pause the extended duration may be lost.

    2} Allow the manual uninstallation of the new Chromium-Edge, this may not work if the browser has been permanently integrated into the OS or if using the TechBench 'Business' ISO's then the uninstall option will be not be available via the 'Add or remove programs' operations.

    + Updated the 'Theme Settings' Context menu:
    1} Use the old 'Personalization' pane via Control Panel, {if available in the OS}.
    2} Wording for 'Configuration' will now be 'Desktop Background'.

    The above are dependent on if the OS has these items available to use and then MRP will attempt to auto-translate {hopefully} the new menu items into the native OS Language, if it fails to translate then they will be shown in default English.

    Important Notes:
    When using the 'Pause Feature/Quality updates' or the 'Prevent OS Upgrades' options note that on Builds below RS4/1803 they may not always function as expected. This is due to the OS having a possible in-built time-bomb to force upgrade.

    On Builds below 1803/RS4 it may be better to 'Pause *Both* Feature/Quality updates' and then manually install any Quality/Normal updates later.

    With RS4/1803 and above Builds when using the 'Prevent OS Upgrading to new Builds' option the OS should hopefully be 'locked' on that Build/Version until at least the 'End-Of-Life' of the OS. It should only show Quality/Normal updates until that time, sort of LTSC like but only until that internal time-bomb appears to trigger the upgrade to a newer Build/Version.

    Also note:
    If you un-Pause the updates it will most likely force install any updates, plus it then may not allow the extended pause again.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    Would it be possible to have MRP set the folder view to details?
     
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    #6386 mxman2k, Oct 12, 2020
    Last edited: Oct 13, 2020
    (OP)
    I was going to add that as a option but then i would have make it a multi-choice for other views.

    It is a personal tweak i use, i may see if i can make a multi choice version but it can get a bit complicated as after rs2 m$ made things awkward and sometimes it gets reset to the os's 'dated groupby' default.

    I may put that folder 'details' view tweak as a stand alone script, im at work now so if i get time tomorrow i will post the code in thread.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    #6388 mxman2k, Oct 13, 2020
    Last edited: Oct 13, 2020
    (OP)
    The script i had put here only reset the views back to the OS's defaults, which seemed not to be 'Details' view...

    When i can sort this out i will post the revised script(s)... :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    That would beatiful if it would work out:)
     
  8. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    I have a script now that hopefully sets all explorer views to "details".

    It appears to work ok on 7, 8.x, win10 rs2, rs3, rs4 for rs5 and later it also needs the mrp's 'reset groupby' option used as well or the libraries are set back to that odd 'dated content' view which i know a lot are like me that are not too keen on.

    As i have been called to work early and on my phone, sadly i cannot post the script today.

    The script can be adapted for usertweaks or setupcomplete so it will be ok for oobe use, you will need to reboot or at minimum close and restart explorer.exe via taskmanager to show the effects.

    Note it will also set the user's desktop icons in a orderly grouped manner, so it best to use the script with care on a 'running' os.

    The script will be supplied 'as is' and no guarantee that it will work in all scenarios.

    If those that wish to test and give feedback if it works then i will add it as a mrp general os option.

    Will post it tomorrow morning (GMT). :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    867
    1,463
    30
  10. Dubioza Kolektiv

    Dubioza Kolektiv MDL Addicted

    Dec 27, 2012
    867
    1,463
    30
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    #6393 mxman2k, Oct 15, 2020
    Last edited: Oct 15, 2020
    (OP)
    Here is the script, please note there is a section (bypassed by default) that can have some very strange side effects on some Windows 10 RS2+ OS's so make sure you are fully aware what it can do to the coloring of the explorer window's text!

    For use within UserTweaks or SetupComplete cmd scripts make sure you remove the parts in the orange colored text or you may have some weird effects and NEVER have a stop/restart explorer.exe operation within those scripts, as because during OOBE stages if that is used then the OS will most likely 'hang' or corrupt itself so be warned!!

    Code:
    
    @REM Remove the part below up to the next @REM statement when not using as a stand-alone script.
    @echo off
    cls
    color 1f
    echo Checking Admin...
    @reg query HKU\S-1-5-19>nul 2>nul||(set 0="%~f0" %*&powershell -nop -c start cmd -args '/x/d/q/rcall',$env:0 -v runas&exit)
    
    @REM Main script starts below...
    @echo off
    cls
    echo Reset explorer views to 'Details' View...
    TITLE Reset explorer views to 'Details' View...
    COLOR 1F
    echo.
    echo Please note this will set the Desktop and ALL 'Libraries' to details view by default.
    echo.
    
    REM ==============================================================
    REM The possible "Mode" and "Vid/GUID" values that can be set...
    REM ==============================================================
    REM View/Name      Mode                Vid/GUID
    REM ==============================================================
    REM Icons           1       {0057D0E0-3573-11CF-AE69-08002B2E1262}
    REM List            3       {0E1FA5E0-3573-11CF-AE69-08002B2E1262}
    REM Details         4       {137E7700-3573-11CF-AE69-08002B2E1262}
    REM Thumbnail       5       {8BEBB290-52D0-11D0-B7F4-00C04FD706EC}
    REM Tiles           6       {65F125E5-7BE1-4810-BA9D-D271C8432CE3}
    REM Filmstrip       7       {8EEFA624-D1E9-445B-94B7-74FBCE2EA11A}
    REM ==============================================================
    
    SET "FflagsValue=1124073472"
    SET "ModeValue=4"
    
    Reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /f >NUL 2>&1
    Reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /f >NUL 2>&1
    Reg delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /f >NUL 2>&1
    Reg delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /f >NUL 2>&1
    Reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f >NUL 2>&1
    Reg delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /f >NUL 2>&1
    Reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoSaveSettings" /f >NUL 2>&1
    
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "FullRowSelect" /t REG_DWORD /d "0" /f >NUL 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "KnownFolderDerivedFolderType" /t REG_SZ /d "{57807898-8C4F-4462-BB63-71042380B109}" /f >NUL 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "SniffedFolderType" /t REG_SZ /d "Generic" /f >NUL 2>&1
    
    Reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f >NUL 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell" /v "BagMRU Size" /t REG_DWORD /d "20000" /f >NUL 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "FolderType" /t REG_SZ /d "NotSpecified" /f >NUL 2>&1
    Reg add "HKCU\SOFTWARE\Microsoft\Windows\Shell\Bags\1\Desktop" /v "fflags" /t REG_DWORD /d "00000220" /f >NUL 2>&1
    
    Reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "WFlags" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "Status" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "Mode" /t REG_DWORD /d "%ModeValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "Vid" /t REG_SZ /d "{137E7700-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    
    Reg add "HKCU\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "WFlags" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "Status" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "Mode" /t REG_DWORD /d "%ModeValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "Vid" /t REG_SZ /d "{137E7700-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    
    REG add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /f >nul 2>&1
    
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{20338b7b-531c-4aad-8011-f5b3db2123ec}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{36011842-dccc-40fe-aa3d-6177ea401788}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3D1D4EA2-1D8C-418a-BFF8-F18370157B55}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{4dcafe13-e6a7-4c28-be02-ca8c2126280d}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{503a4e73-1734-441a-8eab-01b3f3861156}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{59BD6DD1-5CEC-4d7e-9AD2-ECC64154418D}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{71689ac1-cc88-45d0-8a22-2943c3e7dfb3}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7fde1a1e-8b31-49a5-93b8-6be14cfa4943}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{921C636D-9FC8-40d7-899E-0845DCD03010}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{e053a11a-dced-4515-8c4e-d51ba917517b}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{ea25fbd7-3bf7-409e-b97f-3352240903f4}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    
    Reg delete "HKLM\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /f >NUL 2>&1
    Reg delete "HKLM\Software\Microsoft\Windows\ShellNoRoam\Bags" /f >NUL 2>&1
    Reg delete "HKLM\Software\Microsoft\Windows\Shell\BagMRU" /f >NUL 2>&1
    Reg delete "HKLM\Software\Microsoft\Windows\Shell\Bags" /f >NUL 2>&1
    Reg delete "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /f >NUL 2>&1
    Reg delete "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /f >NUL 2>&1
    Reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoSaveSettings" /f >NUL 2>&1
    
    Reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /f >NUL 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell" /v "BagMRU Size" /t REG_DWORD /d "20000" /f >NUL 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "FolderType" /t REG_SZ /d "NotSpecified" /f >NUL 2>&1
    Reg add "HKLM\SOFTWARE\Microsoft\Windows\Shell\Bags\1\Desktop" /v "fflags" /t REG_DWORD /d "00000220" /f >NUL 2>&1
    
    Reg add "HKLM\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "WFlags" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "Status" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "Mode" /t REG_DWORD /d "%ModeValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Microsoft\Windows\ShellNoRoam\Bags\AllFolders\Shell" /v "Vid" /t REG_SZ /d "{137E7700-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    
    Reg add "HKLM\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "WFlags" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "Status" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "Mode" /t REG_DWORD /d "%ModeValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v "Vid" /t REG_SZ /d "{137E7700-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    
    REG add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /f >nul 2>&1
    REG add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "FileOpenDialog" /t REG_DWORD /d "4" /f >nul 2>&1
    
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{20338b7b-531c-4aad-8011-f5b3db2123ec}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{36011842-dccc-40fe-aa3d-6177ea401788}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{3D1D4EA2-1D8C-418a-BFF8-F18370157B55}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{4dcafe13-e6a7-4c28-be02-ca8c2126280d}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{503a4e73-1734-441a-8eab-01b3f3861156}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{59BD6DD1-5CEC-4d7e-9AD2-ECC64154418D}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{71689ac1-cc88-45d0-8a22-2943c3e7dfb3}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7fde1a1e-8b31-49a5-93b8-6be14cfa4943}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{921C636D-9FC8-40d7-899E-0845DCD03010}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{e053a11a-dced-4515-8c4e-d51ba917517b}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{ea25fbd7-3bf7-409e-b97f-3352240903f4}" /v "Mode" /t REG_DWORD /d "%ModeValue%" /F >nul 2>&1
    
    REM **** Using the below section can cause strange color changes within the explorer windows! ***
    REM **** Create a system restore point, or OS back up first before enabling this part. ****
    REM **** Or as a minimal task export the registry. ****
    REM **** USE AT YOUR OWN RISK ****
    
    REM remark or remove the GOTO line below to enable the extra section, READ NOTES ABOVE FIRST!!!
    GOTO :LastBit
    
    REM ============================ Adjusts for 7, 8.x, 10 ===================================
    REM Another mode value - sets 'details' view across the board, but can have side effects!
    SET "Mode2Value=1"
    
    REM Generic - Folder Template
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "FileOpenDialog" /t REG_DWORD /d "4" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Documents - Folder Template
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Music - Folder Template
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Pictures - Folder Template
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Videos - Folder Template
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Generic - Folder Template
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "FileOpenDialog" /t REG_DWORD /d "4" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Documents - Folder Template
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Music - Folder Template
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Pictures - Folder Template
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    REM Videos - Folder Template
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "Rev" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "Vid" /t REG_SZ /d "{0057D0E0-3573-11CF-AE69-08002B2E1262}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "LogicalViewMode" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "IconSize" /t REG_DWORD /d "16" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupView" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupByKey:FMTID" /t REG_SZ /d "{00000000-0000-0000-0000-000000000000}" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupByKey:PID" /t REG_DWORD /d "0" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "GroupByDirection" /t REG_DWORD /d "1" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "FFlags" /t REG_DWORD /d "%FflagsValue%" /f >nul 2>&1
    Reg add "HKLM\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}" /v "Mode" /t REG_DWORD /d "%Mode2Value%" /f >nul 2>&1
    
    :LastBit
    REM Finish up.
    echo.
    echo Stop and Restart Explorer.exe or a log off/on cycle to see results.
    
    echo.
    echo All Done.
    echo.
    timeout /t 5
    
    

    I have listed the 'Mode' and GUID 'Vid' values that can change the view of the folders etc.

    The script is supplied 'as-is' and your results may vary depending on the OS, so please test via a VM or non critical installation first.

    If this works ok and it becomes a option for MRP i will not add the section that can/may cause the odd color effects.

    Edit:
    If i can work out which reg entry that affects the explorer window's background and text colors and fix those i may add it into the option.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    Thanks man! I'll be sure to test this in a VM first obviously and on a separate SSD for my main pc before actual reinstall..
     
  13. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    The section i bypassed may be ok if you not using dark mode for system, on my 20h2 it was all very dark and almost unreadable so that why i set the script to skip that part.

    The main part does not seem to affect the window and text colors. Not sure which reg entry affects that so will need more indepth testing if that 2nd bypassed part is used.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    I happen to love dark mode tho, I'll skip it just to try, I'll get back to you this evening or tomorrow
     
  15. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    The script posted as it is will work with dark mode, because the section that can do the weird mega-dark colors is already skipped past via the goto command. :)

    I will work with it more to fix the colors issue when i get some time.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,488
    1,506
    150
    First test deployed over MDT and PXE, seemed to work fine I think. "This PC" wasnt changed tho
     
  17. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    5,799
    19,385
    180
    ok at least on the right track and no major problems, with latest w10 it seems m$ have either locked some registry parts or they are ignored, maybe the GUID has changed slightly...

    I am still looking at the ShellBags areas and trying to work out which causes that super all dark text problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...