0

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.

2
  • 1
    Why not just set this to a top level folder (options) and then apply to all folders? That is what I do.
    – anon
    Commented Jan 26 at 15:24
  • There are various defined folder types,. such as General items, Documents, and Music. For each of those types, one can define a view (e.g., Details), the sorting order, the Group by field. In addition, one can define the columns (e.g., in Music, add Title, or in Pictures, Frame width). Once that is done for all folder type, all Explorer windows will open to those specs unless one changes the view. Commented Jan 26 at 19:19

1 Answer 1

0

The post Need help decoding registry binary data contains an outstanding answer by Keith Miller, from which I quote this small part:

Once a folder has been viewed in Explorer, Windows saves the view settings for that individual folder under two registry keys. If the folders are local, the keys are:

HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU

--- and ---

HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags

You may set your registry settings to be the way you want and then export them to .reg file that can then import into any computer user. You may also use only some of the settings.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .