Today I’ve discovered that I’m denied access to several folders in Windows 7. Now, you might be thinking ‘Did you try running Explorer with Administrative privileges?’. Of course I have!

The list of folders that I was denied access to is the following:

 

  • Access to the path ‘C:Documents and Settings’ is denied.
  • Access to the path ‘C:ProgramDataApplication Data’ is denied.
  • Access to the path ‘C:ProgramDataDesktop’ is denied.
  • Access to the path ‘C:ProgramDataDocuments’ is denied.
  • Access to the path ‘C:ProgramDataFavorites’ is denied.
  • Access to the path ‘C:ProgramDataMicrosoftWwanSvcProfiles’ is denied.
  • Access to the path ‘C:ProgramDataStart Menu’ is denied.
  • Access to the path ‘C:ProgramDataTemplates’ is denied.
  • Access to the path ‘C:RRbackups’ is denied.
  • Access to the path ‘C:System Volume Information’ is denied.
  • Access to the path ‘C:Users<username>AppDataLocalApplication Data’ is denied.
  • Access to the path ‘C:Users<username>AppDataLocalHistory’ is denied.
  • Access to the path ‘C:Users<username>AppDataLocalTemporary Internet Files’ is denied.
  • Access to the path ‘C:Users<username>Application Data’ is denied.
  • Access to the path ‘C:Users<username>Cookies’ is denied.
  • Access to the path ‘C:Users<username>DocumentsMy Music’ is denied.
  • Access to the path ‘C:Users<username>DocumentsMy Pictures’ is denied.
  • Access to the path ‘C:Users<username>DocumentsMy Videos’ is denied.
  • Access to the path ‘C:Users<username>Local Settings’ is denied.
  • Access to the path ‘C:Users<username>My Documents’ is denied.
  • Access to the path ‘C:Users<username>NetHood’ is denied.
  • Access to the path ‘C:Users<username>PrintHood’ is denied.
  • Access to the path ‘C:Users<username>Recent’ is denied.
  • Access to the path ‘C:Users<username>SendTo’ is denied.
  • Access to the path ‘C:Users<username>Start Menu’ is denied.
  • Access to the path ‘C:Users<username>Templates’ is denied.
  • Access to the path ‘C:UsersAll UsersApplication Data’ is denied.
  • Access to the path ‘C:UsersAll UsersDesktop’ is denied.
  • Access to the path ‘C:UsersAll UsersDocuments’ is denied.
  • Access to the path ‘C:UsersAll UsersFavorites’ is denied.
  • Access to the path ‘C:UsersAll UsersMicrosoftWwanSvcProfiles’ is denied.
  • Access to the path ‘C:UsersAll UsersStart Menu’ is denied.
  • Access to the path ‘C:UsersAll UsersTemplates’ is denied.
  • Access to the path ‘C:UsersDefaultAppDataLocalApplication Data’ is denied.
  • Access to the path ‘C:UsersDefaultAppDataLocalHistory’ is denied.
  • Access to the path ‘C:UsersDefaultAppDataLocalTemporary Internet Files’ is denied.
  • Access to the path ‘C:UsersDefaultApplication Data’ is denied.
  • Access to the path ‘C:UsersDefaultCookies’ is denied.
  • Access to the path ‘C:UsersDefaultDocumentsMy Music’ is denied.
  • Access to the path ‘C:UsersDefaultDocumentsMy Pictures’ is denied.
  • Access to the path ‘C:UsersDefaultDocumentsMy Videos’ is denied.
  • Access to the path ‘C:UsersDefaultLocal Settings’ is denied.
  • Access to the path ‘C:UsersDefaultMy Documents’ is denied.
  • Access to the path ‘C:UsersDefaultNetHood’ is denied.
  • Access to the path ‘C:UsersDefaultPrintHood’ is denied.
  • Access to the path ‘C:UsersDefaultRecent’ is denied.
  • Access to the path ‘C:UsersDefaultSendTo’ is denied.
  • Access to the path ‘C:UsersDefaultStart Menu’ is denied.
  • Access to the path ‘C:UsersDefaultTemplates’ is denied.
  • Access to the path ‘C:UsersDefault User’ is denied.
  • Access to the path ‘C:UsersPublicDocumentsMy Music’ is denied.
  • Access to the path ‘C:UsersPublicDocumentsMy Pictures’ is denied.
  • Access to the path ‘C:UsersPublicDocumentsMy Videos’ is denied.
  • Access to the path ‘C:WindowsRegistrationCRMLog’ is denied.
  • Access to the path ‘C:WindowsSystem32comdmp’ is denied.
  • Access to the path ‘C:WindowsSystem32configsystemprofileAppDataLocalApplication Data’ is denied.
  • Access to the path ‘C:WindowsSystem32configsystemprofileAppDataLocalHistory’ is denied.
  • Access to the path ‘C:WindowsSystem32configsystemprofileAppDataLocalTemporary Internet Files’ is denied.
  • Access to the path ‘C:WindowsSystem32configsystemprofileApplication Data’ is denied.
  • Access to the path ‘C:WindowsSystem32configsystemprofileCookies’ is denied.
  • Access to the path ‘C:WindowsSystem32configsystemprofileLocal Settings’ is denied.
  • Could not find a part of the path ‘C:WindowsSystem32configsystemprofileSendTo’.
  • Access to the path ‘C:WindowsSystem32LogFilesWMIRtBackup’ is denied.
  • Access to the path ‘C:WindowsSysWOW64comdmp’ is denied.
  • Access to the path ‘C:WindowsSysWOW64configsystemprofileAppDataLocalApplication Data’ is denied.
  • Access to the path ‘C:WindowsSysWOW64configsystemprofileAppDataLocalHistory’ is denied.
  • Access to the path ‘C:WindowsSysWOW64configsystemprofileAppDataLocalTemporary Internet Files’ is denied.
  • Access to the path ‘C:WindowsSysWOW64configsystemprofileApplication Data’ is denied.
  • Access to the path ‘C:WindowsSysWOW64configsystemprofileCookies’ is denied.
  • Access to the path ‘C:WindowsSysWOW64configsystemprofileLocal Settings’ is denied.
  • Could not find a part of the path ‘C:WindowsSysWOW64configsystemprofileSendTo’.

As you’ve probably already figured it out, the list contains also the special folders from the 64bit environment that aren’t accessible.

The thing is, as it appears, that these aren’t actual folders, but so-called junction points, created to offer backward compatibility with other operating systems (Vista, XP…).

Now, if you might have been able to see them in Vista (as shortcuts), and access them (which would have redirected you to the actual folders), there is a small glitch in Seven: you don’t see them, not even as shortcuts, and if you try to manually insert these folder paths and open them, instead of being redirected to the actual folders, you’ll get an error saying that access is denied. Honestly, I would have liked to get an ‘path does not exist’ or something similar.

So, how did I get this list? Well, I ran a folder-listing application I’ve written in .NET Framework, and the GetDirectories() method returned these folders as sub-folders of their parents (sounds fishy :)).

So here’s the thing with backward compatibility:

  1. you have an app that does some IO ops in the special environment folders
  2. the .NET Framework returns these special folders as existing
  3. you run your app with elevated privileges to make sure no errors occur
  4. boom, you get an access denied error on some special folders that don’t actually exist.

Is it just me, or is there a glitch somewhere?

P.S.: more about junction poins here: http://www.svrops.com/svrops/articles/jpoints.htm

3 Thoughts on “Junction points in Windows 7

  1. Steven J Armstrong on February 2, 2012 at 6:47 pm said:

    Alex this is very interesting. However, is there a way to access an old C: hard drive from Vista. That is now an external drive on windows 7. The jucntion points I can not access to look at My pictures from this old drive? Do you no of a way to get access to this folder?

  2. Steven J Armstrong on February 2, 2012 at 6:49 pm said:

    Sorry I am not sure how your site works..

  3. Steven, could you please detaile a little? Are you trying to access them via a programming language or PowerShell (or maybe using the basic command shell scripts?).

Leave a Reply

Post Navigation