I'm looking to customize the default settings of File Explorer on my Windows 10 system. Specifically, I want to set the default view mode to "Details" and have files always grouped by "Type". I want to achieve this through Command Prompt (cmd/batch) or PowerShell scripting.
What I Have Tried:
I have looked into some relevant register keys, for example:
reg query HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
or
Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
However, I am unsure which one(s) I should modify and to what values.
My Question:
How can I script the changes to make the "Details" view and "Group by Type" the default settings for all folders in File Explorer? Can specific registry keys or PowerShell commands be used to achieve this?
I understand that these settings might be managed per folder and that Windows may override them in certain cases, but any guidance on making a global change would be greatly appreciated.