How to Backup and restore Default folder views


  1. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #1

    How to Backup and restore Default folder views


    This has been copied from a 2017 article I wrote on another forum. I'll review this thread, including any suggestions for improvement, when I get/make the time and I will probably then suggest it as a TenForumsTutorial.




    Introduction

    Once you have set up the default folder views [Music, Documents, Videos, General, Pictures] for your user account on your computer, you can backup these settings so that the views you want can be restored quickly after reinstallation or after a major Windows 10 version upgrade has reset them. You can also restore them to a different user on the same computer and to a different Windows 10 computer.

    The procedure

    1 Set up the default folder views that you want for any or all of the folder types [Music, Documents, Videos, General, Pictures]. For each folder type -
    [none of this is destructive so you can play around as much as you like]

    1.01 In File explorer, find a folder of the type desired [Music, Documents, Videos, General, Pictures] or create a new folder temporarily to use in this procedure.
    1.02 In File explorer, right-click on the folder name, Properties, Customise - set this to the type desired if it is not set already [including sub-folders if relevant to the case in hand] then click on OK.
    1.03 In the bottom-right of File explorer's right-hand pane, click on the Displays information about each item icon.
    1.04 In File explorer's toolbar, select the View menu then, in its Layout section, select Details.
    1.05 In File explorer's right-hand pane, right-click on any column header then select More... at the bottom of the list.
    1.06 Choose the columns you want to see then click on OK.
    1.07 Drag column headers across each other to get them into the layout you want.
    1.08 Grab the separator lines between the columns and drag them to set the required width for each column - the default width for Name is likely to be too narrow whilst the default widths for Date modified, Size, Attributes are likely to be too wide & hence wasteful of your limited screen space.
    1.09 Sort the entries the way you want by clicking on the relevant column header. You'll see a little v symbol [descending order] or a little ^ symbol [ascending order] appear at the top of the column you have sorted by. I can never remember which v/^ means what so I always have to look at the entries in the folder I am working in to check they are sorted the way I want.
    1.10 Personally, I set all this up in a maximised window then I use WinKey-LeftArrow to show it occupying half the screen width so I can check that what I have set up is sensible for both these common ways of seeing File explorer windows. Even in the half-size window, I like to be able to see the Name & the Date modified columns because I find that avoids a lot of scrolling around whilst working.
    1.11 In File explorer's toolbar, View menu, [at the right-hand end] click on Options then select the View tab of the dialog that appears.
    1.12 Click on Apply to folders to set all folders of the same type to match the layout you have just designed. In other words, click on Apply to folders to set the default for that folder type

    2 Run RegEdit & go to
    Code:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults
    • This key contains the settings for the currently logged on user.
    • From Ver 1703 onwards, you can paste that path into the RegEdit address bar rather than mess about digging down through the Registry to find the key.


    3 Right-click the key and Export it in .reg format.

    • This format can easily be read in Notepad so there is no particular need to do a .txt Export as well.
    • Personally, I find the layout of .reg Exports easier to read in NotePad than .txt Exports anyway. Just make sure that you have turned off NotePad's Word wrap feature as that can cause confusing displays which can lead to editing errors.


    4 To restore the default folder views later on just double-click on the .reg file.

    • The correct terminology is that this "merges" it rather then "runs" it.
    • There are one or two confirmations to accept and then a confirmation dialog appears to tell you it has succeeded.
    • Different logged on users & different computers can all use the same .reg file if their default folder view requirements are the same. So there is only a need to create this .reg file once.
    • Before restoring default folder views, you ought to Export the key's existing settings for that user or that computer as a temporary backup so that you can change your mind afterwards and get back to where you started. You can then delete this temporary .reg file when you can see that the changes are what you wanted.
    • To allow changes to take effect, close any open File explorer windows then reopen them.





    Additional notes that might be of interest to some people

    5 If you are only interested in particular items then note their GUID references below because they do not carry any explanatory label. Each entry in the Registry key is created when that default folder view is set up so if, for example, you have only ever set up General & Documents default folder views, you will only see two lines in the Registry key.
    Music {94D6DDCC-4A68-4175-A374-BD584A510B78}
    Documents {7D49D726-3C21-4F05-99AA-FDC2C9474656}
    Videos {5FA96407-7E77-483C-AC93-691D05850DE8}
    General {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}
    Pictures {B3690E58-E961-423B-B687-386EBFD83239}

    6 Exporting the Registry key backs up all of them [that have been set up i.e. for which the entries exist] but you can manually edit a copy of the .reg file in Notepad if you just want to restore one of them.

    7 These items are the same for other logged on users on the same computer and on different computers. So, once the items have been set up for one logged on user on one computer, the .reg file can be used to set all others that require the same settings.

    • To set this up for another user, just log in as that user and use the procedure shown in paragraph 4.
    • There is no need for the target user or target computer to have set up any default folder views beforehand.
    • I have tested this on Windows 10 Home & Pro, 32 & 64 bit
    • I set up one computer's default folder views then restored its .reg file on two others. I then changed their default folder views manually in File explorer and restored again to prove that the procedure was robust enough to cope with repeated changes.


    8 There is no need to restart explorer.exe [i.e. Windows itself] at any stage of this procedure.

    9 I used NirSoft's RegFromApp to identify the key used.


    Denis
    Last edited by Try3; 22 Oct 2020 at 14:26.
      My Computer


  2. Posts : 989
    Microsoft Windows 10 Home
       #2

    Though it doesn't appear in the drop-list of FolderTYpes on the Customizde tab of the folder's Properties dialog, there is now a FolderType dedicated the Downloads folder that can also be customized via Apply to folders. This is the way to override the GroupBy Date default that annoys so many.

    How to Backup and restore Default folder views-screenshot-864-.png

    The OneDrvie folders also have their own templates, though the names are identical in the Cuszomize dialog, under the hood, they are seperate templates. Here's a list I compiled of the FolderTypes IDs that Explorer looks for under HKCU\...\Sttreams\Defaults:


    Code:
    ID                                     Name
    --                                     ----
    {885A186E-A440-4ADA-812B-DB871B942259} Downloads
    {5C4F28B5-F869-4E84-8E60-F11DB97C5CC7} Generic
    {7D49D726-3C21-4F05-99AA-FDC2C9474656} Documents
    {94D6DDCC-4A68-4175-A374-BD584A510B78} Music
    {B3690E58-E961-423B-B687-386EBFD83239} Pictures
    {5FA96407-7E77-483C-AC93-691D05850DE8} Videos
    {4F01EBC5-2385-41F2-A28E-2C5C91FB56E0} StorageProviderGeneric
    {DD61BD66-70E8-48DD-9655-65C5E1AAC2D1} StorageProviderDocuments
    {672ECD7E-AF04-4399-875C-0290845B6247} StorageProviderMusic
    {71D642A9-F2B1-42CD-AD92-EB9300C7CC0A} StorageProviderPictures
    {51294DA1-D7B1-485B-9E9A-17CFFE33E187} StorageProviderVideos
    {DB2A5D8F-06E6-4007-ABA6-AF877D526EA6} AccountPictures
    {DE2B70EC-9BF7-4A93-BD3D-243F7881D492} Contacts
    {24CCB8A6-C45A-477D-B940-3382B9225668} HomeFolder
    {C4D98F09-6124-4FE0-9942-826416082DA9} UsersLibraries
    {D674391B-52D9-4E07-834E-67C98610F39D} Programs
    {CD0FC69B-71E2-46E5-9690-5BCD9F57AAB3} UserFiles
    {0B0BA2E3-405F-415E-A6EE-CAD625207853} Searches
      My Computer


  3. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
    Thread Starter
       #3

    Keith,

    Thanks for responding. I need to understand the additional items you have identified before I can try including them.

    1 Downloads folder

    That's an HKLM entry.
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{885a186e-a440-4ada-812b-db871b942259}
    CanonicalName - Downloads

    How does it relate to entries in -

    User Shell Folders download folder[s] - std, local
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    {374DE290-123F-4565-9164-39C4925E467B}
    {7d83ee9b-2244-4e70-b1f5-5393042af1e4}

    IE download folder
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
    Download Directory

    Edge download folder
    HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wek yb3d8bbwe\MicrosoftEdge\Main
    Default Download Directory

    Default folder views key
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults
    [see section 3]



    2 OneDrive

    I don't use OneDrive and know very little about it so I don't even know what point you are making.



    3 Other folder types

    I don't have these entries and have no idea what they are
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults

    Code:
    ID                                     Name
    --                                     ----
    {885A186E-A440-4ADA-812B-DB871B942259} Downloads
    {4F01EBC5-2385-41F2-A28E-2C5C91FB56E0} StorageProviderGeneric
    {DD61BD66-70E8-48DD-9655-65C5E1AAC2D1} StorageProviderDocuments
    {672ECD7E-AF04-4399-875C-0290845B6247} StorageProviderMusic
    {71D642A9-F2B1-42CD-AD92-EB9300C7CC0A} StorageProviderPictures
    {51294DA1-D7B1-485B-9E9A-17CFFE33E187} StorageProviderVideos
    {DB2A5D8F-06E6-4007-ABA6-AF877D526EA6} AccountPictures
    {DE2B70EC-9BF7-4A93-BD3D-243F7881D492} Contacts
    {24CCB8A6-C45A-477D-B940-3382B9225668} HomeFolder
    {C4D98F09-6124-4FE0-9942-826416082DA9} UsersLibraries
    {D674391B-52D9-4E07-834E-67C98610F39D} Programs
    {CD0FC69B-71E2-46E5-9690-5BCD9F57AAB3} UserFiles
    {0B0BA2E3-405F-415E-A6EE-CAD625207853} Searches


    Denis
    Last edited by Try3; 22 Oct 2020 at 06:45.
      My Computer


  4. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
       #4

    Hello Denis,

    Would this be the same or similar as applying a set folder view to all folders using the same template, repeat for each different template if wanted, and back up the folder view settings?

    Apply Folder View to All Folders of Same Type in Windows 10

    Backup and Restore Folder View Settings in Windows 10
      My Computers


  5. Posts : 989
    Microsoft Windows 10 Home
       #5

    Try3 said:
    Keith,
    1 Downloads folder

    That's an HKLM entry.
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{885a186e-a440-4ada-812b-db871b942259}
    CanonicalName - Downloads

    How does it relate to entries in -

    User Shell Folders download folder[s] - std, local
    Code:
    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    {374DE290-123F-4565-9164-39C4925E467B}
    {7d83ee9b-2244-4e70-b1f5-5393042af1e4}
    IE download folder
    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
    Download Directory

    Edge download folder
    HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wek yb3d8bbwe\MicrosoftEdge\Main
    Default Download Directory

    Default folder views key
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults
    [see section 3]


    The names/GUIDs of values found under HKCU\...\User Shell Folders correspond to the definitions under:

    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions

    This is where many (but not all) default folder are defined (name, path, etc.). Those with a Category of 4 are file system folders created on a per-user basis.

    System-wide default views are defined under:
    HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes

    These GuIDs correspond to the values found under HKCU\...\Streams\Defaults.

    How FolderDefinitions are associated with FolderTypes varies. Some by name, e.g. AccountPictures, and some defintions have an explicit FolderTypeID value:

    Code:
    PS C:\> $FDkey = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions'
    PS C:\>>$FDkey | gci | gp | ? Category -eq 4 | ? FolderTYpeID -ne $Null | select psCHildName, name, FolderTypeID | sort name
    
    PSChildName                            Name               FolderTypeID
    -----------                            ----               ------------
    {31C0DD25-9439-4F12-BF41-7FF4EDA38722} 3D Objects         {5C4F28B5-F869-4E84-8E60-F...
    {7AD67899-66AF-43BA-9156-6AAD42E6C596} AppMods            {5C4F28B5-F869-4E84-8E60-F...
    {56784854-C6CB-462B-8169-88E350ACB882} Contacts           {de2b70ec-9bf7-4a93-bd3d-2...
    {374DE290-123F-4565-9164-39C4925E467B} Downloads          {885A186E-A440-4ADA-812B-D...
    {767E6811-49CB-4273-87C2-20F355E1085B} OneDriveCameraRoll {b3690e58-e961-423b-b687-3...
    {24D89E24-2F19-4534-9DDE-6A6671FBB8FE} OneDriveDocuments  {DD61BD66-70E8-48dd-9655-6...
    {C3F2459E-80D6-45DC-BFEF-1F769F2BE730} OneDriveMusic      {672ECD7E-AF04-4399-875C-0...
    {339719B5-8C47-4894-94C2-D8F77ADD44A6} OneDrivePictures   {71D642A9-F2B1-42cd-AD92-E...
    {7d1d3a04-debb-4115-95cf-2f29da2920da} Searches           {0b0ba2e3-405f-415e-a6ee-c...
    (You knew I was going to throw some PowerShell in here, right? )

    On my machine, HKCU\SOFTWARE\Microsoft\Internet Explorer\Download

    is empty. Most likely because I've never downloaded via IE.

    HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main

    has a Default Download Directory value that matches my default Downloads location, so it would use the Downloads FolderType.

    I doubt either of those values, if they pointed to a random location, would imposet the Downloads Foldertype, but that's just a guess.

    Gotta run for a whiel...can clarify more later....
      My Computer


  6. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
    Thread Starter
       #6

    Brink said:
    Hello Denis,

    Would this be the same or similar as applying a set folder view to all folders using the same template, repeat for each different template if wanted, and back up the folder view settings?

    Apply Folder View to All Folders of Same Type in Windows 10

    Backup and Restore Folder View Settings in Windows 10
    Brink,

    It's backing up & restoring the default, the template, for each folder type.

    It does not backup or restore individual folder settings [unlike your bags tutorial].

    Denis
      My Computer


  7. Posts : 68,995
    64-bit Windows 11 Pro for Workstations
       #7

      My Computers


  8. Posts : 16,956
    Windows 10 Home x64 Version 22H2 Build 19045.4170
    Thread Starter
       #8

    Keith,

    I'm baffled.

    I know nothing about the FolderDescriptions, FolderTypes Registry keys you refer to. I don't understand how they relate to the Default views set for each folder type in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults

    Denis



    It was only later yesterday that I realised you were not suggesting changes to
    backing & restoring default folder views
    but were suggesting additional [special] folders for which view settings could be backed up & restored.

    Denis
    Last edited by Try3; 23 Oct 2020 at 00:51.
      My Computer


  9. Posts : 989
    Microsoft Windows 10 Home
       #9

    Try3 said:
    Keith,

    I'm baffled.

    I know nothing about the FolderDescriptions, FolderTypes Registry keys you refer to. I don't understand how they relate to the Default views set for each folder type in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults

    Denis



    It was only later yesterday that I realised you were not suggesting changes to
    backing & restoring default folder views
    but were suggesting additional [special] folders for which view settings could be backed up & restored.

    Denis
    You asked how {885a186e-a440-4ada-812b-db871b942259}
    related to
    Code:
    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User ShellFolders
    
    {374DE290-123F-4565-9164-39C4925E467B}
    {7d83ee9b-2244-4e70-b1f5-5393042af1e4}

    The former is the Downloads FolderType(default view) that is applied to the Downloads folder (the latter two GUIDs).

    When you use Apply to Folders to set a custom view, the GUID found under HKCU\...\Defaults will be one of the IDs under HKLM\...\FolderTypes.
    Does that help???
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:15.
Find Us




Windows 10 Forums