Reset all folder view settings to the default using the following batch file:
@echo off
:: To reset all folders to default folder views
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\BagMRU" /F
Reg Delete "HKCU\Software\Microsoft\Windows\Shell\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /F
Reg Delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /F
Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
Reg Delete "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F
Reg Delete "HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\Bags" /F
Reg Delete "HKCU\Software\Classes\Wow6432Node\Local Settings\Software\Microsoft\Windows\Shell\BagMRU" /F
:: To reset Windows Photo Viewer position
Reg Delete "HKCU\Software\Microsoft\Windows Photo Viewer\Viewer" /VA /F
:: To kill and restart explorer
taskkill /f /im explorer.exe
start explorer.exe
Afterwards if required you can specify the folder template via folder Properties > Customize tab, then change the sort order and Apply to Folders from the Folder Options > View tab.