How to set folder view in explorer for all folders via registry

These are the registry manipulations that I know of. The following text is to be copied into a .reg file and be executed. I suggest creating first a system restore point and maybe exporting the registry keys below using regedit for safe-keeping.

Windows Registry Editor Version 5.00

;___________________________________________________
;Delete all view settings
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU]

;___________________________________________________
; Set default view to tiled
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}]
"LogicalViewMode"=dword:00000003

;___________________________________________________
; set folder type to not specific
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"

Other related registry keys that might need deleting may be found in this Microsoft article.