How to change Explorer's default location via the registry?

7,954

By removing the following registry key, the Libraries will be hidden from the navigation pane and when launching via Win + E, Windows Explorer will default to the virtual Computer folder. If you apply this solution along with @Qwilson's then it should take care of everything except for launching from the Run prompt.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031E4825-7B94-4dc3-B131-E946B44C8DD5}

After you delete the key, you may need to log off, or restart before it takes effect.

In order to take care of running from the Run prompt, the only solution I could find would be to change your habit from typing explorer to typing shell:mycomputerfolder.

Note: I also found it very helpful to have the Homegroup feature and services turned off. When I tested this in a Virtual Machine with the Homegroup feature on, some launching methods would default to selecting the Homegroup.


Sources:

http://www.askvg.com/how-to-disable-libraries-feature-in-windows-7/

In Windows' Run command line, how to open "My computer"? (@paradroid's answer)

Share:
7,954

Related videos on Youtube

Cutter
Author by

Cutter

Updated on September 18, 2022

Comments

  • Cutter
    Cutter almost 2 years

    I'm using Windows 7. I want to set Explorer's default location to "My Computer", whether explorer.exe is launched via the "Run" command, via command-line or via a shortcut. That's why I don't want to use a shortcut with a parameter.

    I've done it in the past by tweaking the registry, but the default location was reset to Libraries after an update and I can't find the solution again.

    This question isn't a duplicate of this one. The solution given there doesn't work on Windows 7.

    • slhck
      slhck about 11 years
      Out of curiosity, do you happen to know which Windows versions the answer in the other question applies to, so we can tag it accordingly?
    • Cutter
      Cutter about 11 years
      I don't know, sorry.
    • RLH
      RLH about 11 years
      I would like for Explorer to default to `c:` for me. I asked this question but I've deleted it so that I could just up-vote and promote this question. Please note, I'd really prefer to do this through the Registry, if this is possible. I'm not interested in doing this with a third-party, hotkey app. Adding a 50 rep bounty.
    • Karan
      Karan about 11 years
      @slhck: IMO the accepted answer to that other question is valid for XP, whereas the AHK script provided by JMD is valid for Vista+.
    • harrymc
      harrymc about 11 years
      Are you interested in registry hacks like this one or these ones ?
    • Cutter
      Cutter about 11 years
      @harrymc: yes, this kind.
    • harrymc
      harrymc about 11 years
      @Cutter: Based on your above comment I summarized these links in my answer, which you promptly down-voted. I deleted my answer, although I still think it's probably the most complete answer you could get for your question.
    • Cutter
      Cutter about 11 years
      @harrymc: I'm sorry, I misunderstood. I thought you were asking if the kind of solution I was looking for was a registry hack.
  • RLH
    RLH about 11 years
    This doesn't solve the problem, if you open Windows Explorer by use of the Windows Hotkey.
  • Qwilson
    Qwilson about 11 years
    Are you referring to win+e? Because every machine I've ever done this for works in the same manner. Is there any additional info you could offer up about the window behavior e.g. what does open when using the hotkeys. Also, another variation to the target is explorer.exe /e,::{20d04fe0-3aea-1069-a2d8-08002b30309d}
  • RLH
    RLH about 11 years
    When you say right-click on the explorer icon on your taskbar, what are you talking about? In my case, I have a pinned folder, but I have to click it, and then right-click on the option that is titled "unpin this option from the taskbar" to see the Properties option. Regardless, modifying the target of the Win Explorer shortcut didn't fix it. Could you add a screenshot?
  • Qwilson
    Qwilson about 11 years
    Sure... You're going to end up right-clicking twice. Once on the pinned icon and again on "Windows explorer". You select properties from there. I'm not sure I can add the pic to the comments so I'll attach to my answer...
  • Qwilson
    Qwilson about 11 years
    Oh man... As a last ditch effort, maybe forgo the full path. Just use explorer.exe shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}
  • Karan
    Karan about 11 years
    This answer doesn't allow you to change the default Win+E Explorer location to any arbitrary folder. It only ensures that clicking the shortcut makes Explorer open at (My) Computer, which Win+E already does for me anyway, even without a pinned Explorer shortcut.
  • Qwilson
    Qwilson about 11 years
    @Karan The original question wasn't "How to change Explorer location to an arbitrary folder". It is "I want to set Explorer's default location to "My Computer"...". So in effect I have answered the question. As I mentioned, if you want to be critical, I have not yet provided an answer as to how to do this via the registry. I'm working on it though...
  • Karan
    Karan about 11 years
    @RLH: You might want to clarify in your bounty description whether you'll be satisfied with a registry method to set the default location to My Computer (as per the original question), or whether you'd like to know of a way to specify arbitrary locations.
  • Qwilson
    Qwilson about 11 years
    I really don't care how you think I got here, bottom line Is I just wanted to help someone out with an issue. BTW if you want to select a different a specific folder, follow my method but use %windir%\explorer.exe (Somedrive-or-location)... you're welcome. :)
  • harrymc
    harrymc about 11 years
    Much simpler is to define the shortcut as just "C:\" .
  • RLH
    RLH about 11 years
    qwilson, thank you for your help. I thought I did mention that I needed this to point to C:, buy I see that I made a mistake. Karan, is there a way that I can update my bounty description? I don't see a modify button.
  • Cutter
    Cutter about 11 years
    @Qwilson: your answer obviously doesn't solve the problem as it was formulated. It is explicitly asked to avoid the "shortcut" solution.
  • NikoKaranatsios
    NikoKaranatsios about 11 years
    Note that simply removing that registry key does not disable the Libraries feature, it just hides them from the navigation pane in Windows Explorer. On the first link in my answer there is a registry patch file (.reg) that will disable the Libraries feature if you want to go that far.
  • NikoKaranatsios
    NikoKaranatsios about 11 years
    Why the down vote?