Skip to main content
Added warning regarding FolderType override via an 'AllFOlders' entry.
Source Link
Keith Miller
  • 9.8k
  • 1
  • 17
  • 31

Warnings:

WarningFor a .zip folder to use its dedicated FolderType ({80213e82-bcfd-4c4f-8817-bb27601267a9}):

For a .zip folder to use its dedicated FolderType ({80213e82-bcfd-4c4f-8817-bb27601267a9}), it must be created/opened in a folder that does not have Inheritance set for itself or any ancestor.

  • It must be created/opened in a folder that does not have Inheritance set for itself or any ancestor.
  • Default FolderTypes must not be over-ridden by a FolderType entry under either:
    • HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders
    • HKLM\SOFTWARE\Microsoft\Windows\Shell\bags\AllFolders

Warning:

For a .zip folder to use its dedicated FolderType ({80213e82-bcfd-4c4f-8817-bb27601267a9}), it must be created/opened in a folder that does not have Inheritance set for itself or any ancestor.

Warnings:

For a .zip folder to use its dedicated FolderType ({80213e82-bcfd-4c4f-8817-bb27601267a9}):

  • It must be created/opened in a folder that does not have Inheritance set for itself or any ancestor.
  • Default FolderTypes must not be over-ridden by a FolderType entry under either:
    • HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders
    • HKLM\SOFTWARE\Microsoft\Windows\Shell\bags\AllFolders
Source Link
Keith Miller
  • 9.8k
  • 1
  • 17
  • 31

It looks like the way to set a custom template for .zip folders is via an AllFolders regtistry entry. These can be per-user modifications if created under:

    HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{80213e82-bcfd-4c4f-8817-bb27601267a9}

or machine-wide if created under:

    HKLM\SOFTWARE\Microsoft\Windows\Shell\bags\AllFolders\Shell\{80213e82-bcfd-4c4f-8817-bb27601267a9}

Because the view property bags are strored with binary data specifying Columns, sort, etc., it's best to copy an existing saved view that has been set to the preferred defaults. Locating the bag you want to copy is the only tricky part. You'll be looking for an entry With the registry path:

    HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\<Bag#>\Shell\{80213e82-bcfd-4c4f-8817-bb27601267a9}

Warning:

For a .zip folder to use its dedicated FolderType ({80213e82-bcfd-4c4f-8817-bb27601267a9}), it must be created/opened in a folder that does not have Inheritance set for itself or any ancestor.


ProcMon is one way to determine what bag is being writeen to when an Explorer window is closed (that is when any view modifications are saved). Another way is to:

  • determine the highest numbered bag currently in use.
    • PowerShell:

        'MaxBaag# - {0}' -f ([Int[]]((gci 'HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags' -Name) -match '\d+') | sort)[-1]
      
  • Open Explorer, create a new .zip folder, set its view to your liking, close the Explorer window.
  • The view you just created should now be saved with the name:
  • ...\Bags\<MaxBag# + 1>\Shell\{80213e82-bcfd-4c4f-8817-bb27601267a9}

<MaxBag# + 1>

Once you've located the bag you want to copy you simply have to:

  1. Export the registry key:

    HKCU\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\<Bag#>\Shell\{80213e82-bcfd-4c4f-8817-bb27601267a9}
    
  2. Open the .reg file and edit the key path:

    • For a per-user mod, simply replace the bag number with the string AllFolders
    • For a machine-wide mod, in addition to replacing the bag#, replace:
      • HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software
    • with:
      • HKEY_LOCAL_MACHINE\SOFTWARE

          Windows Registry Editor Version 5.00
        
          ; Copied From:
          ; [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{80213E82-BCFD-4C4F-8817-BB27601267A9}]
          ; Per-user path
          [HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{80213E82-BCFD-4C4F-8817-BB27601267A9}]
          ; Machine-wide path would be:
          [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{80213E82-BCFD-4C4F-8817-BB27601267A9}]
        
  3. Save and then merge the modified .reg file

  4. Verify you've created a registry entry similar to the following (don't forget to refresh the view in RegEdit if already opened): enter image description here

  5. Sign out and back in (per-user) or restart (machine-wide) for changes to take effect.