{"id":102,"date":"2008-03-12T18:24:00","date_gmt":"2008-03-12T18:24:00","guid":{"rendered":"http:\/\/www.foldersizes.com\/wordpress\/index.php\/2008\/03\/foldersizes-mapped-drives-and-windows-vista.htm"},"modified":"2010-07-13T15:05:46","modified_gmt":"2010-07-13T15:05:46","slug":"foldersizes-mapped-drives-and-windows-vista","status":"publish","type":"post","link":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/2008\/03\/foldersizes-mapped-drives-and-windows-vista.htm","title":{"rendered":"FolderSizes, Mapped Drives, and Windows Vista"},"content":{"rendered":"<p>We&#8217;ve received a few reports from users that are unable to see one or more <span style=\"font-weight: bold;\">mapped drives<\/span> from within FolderSizes when running it on <span style=\"font-weight: bold;\">Windows Vista<\/span>. Unfortunately, this issue is the result of a Vista security design decision and impacts a broad range of software applications (not just FolderSizes).<\/p>\n<p>The root problem is that (by default) Vista creates two user security tokens when you log in &#8211; the first being a default &#8220;filtered&#8221; (or non-admin) token and the second having administrative capabilities. Usually, you gain access to the latter (admin token) only after being prompted by a <a href=\"http:\/\/en.wikipedia.org\/wiki\/User_Account_Control\">User Account Control<\/a> (UAC) consent dialog.<\/p>\n<p>FolderSizes contains an application manifest that causes it to run with the <span style=\"font-style: italic;\">highest permissions available<\/span> to the user, which on Windows Vista means you&#8217;ll be prompted (by UAC) to allow the process to &#8220;elevate&#8221; itself and run within the context of your full admin token. This is important when using FolderSizes because it helps to ensure full access to the various storage resources that the software analyzes.<\/p>\n<p>So why does any of this impact the visibility of mapped drives within FolderSizes? Because under Vista when you map a network share it is linked to the current logon session for the current process token. This means you won&#8217;t have access to the mapped drive from your alternate, admin token (which FolderSizes runs under by default).<\/p>\n<p>One solution is to run Windows Explorer &#8220;as administrator&#8221; (which you can do with a right-click of the Windows Explorer shortcut) and duplicate your mapped drives from there. They will then be visible to any process that elevates itself during execution.<\/p>\n<p>Another option is to use UNC paths whenever possible. If you find that you can&#8217;t access a mapped drive in Vista (because you created the mapping with a restricted account token), you might consider just entering the UNC path (e.g. \\\\server\\share) into the Path box near the top of the main FolderSizes window.<\/p>\n<p>Yet another option is to make a registry change that will allow Vista to share network connections between your filtered access token and your full administrator token. From <a href=\"http:\/\/support.microsoft.com\/kb\/937624\">MS Knowledge Base article 937624<\/a>, you can do this as follows:<\/p>\n<ol>\n<li>Click <span style=\"font-weight: bold;\">Start<\/span>, type <span style=\"font-weight: bold;\">regedit <\/span>in the <span style=\"font-weight: bold;\">Start Search<\/span> box, and then press ENTER.<\/li>\n<li>Locate and then right-click the following registry subkey: <span style=\"font-weight: bold;\">HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System<\/span><\/li>\n<li>Point to <span style=\"font-weight: bold;\">New<\/span>, and then click <span style=\"font-weight: bold;\">DWORD <\/span>Value.<\/li>\n<li>Type <span style=\"font-weight: bold;\">EnableLinkedConnections<\/span>, and then press ENTER.<\/li>\n<li>Right-click <span style=\"font-weight: bold;\">EnableLinkedConnections<\/span>, and then click <span style=\"font-weight: bold;\">Modify<\/span>.<\/li>\n<li>In the <span style=\"font-weight: bold;\">Value data<\/span> box, type <span style=\"font-weight: bold;\">1<\/span>, and then click <span style=\"font-weight: bold;\">OK<\/span>.<\/li>\n<li>Exit Registry Editor, and then restart the computer.<\/li>\n<\/ol>\n<p>Of course, the usual warnings apply &#8211; don&#8217;t edit your Windows registry unless you know what you&#8217;re doing (and preferably have a backup handy just in case something goes wrong).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve received a few reports from users that are unable to see one or more mapped drives from within FolderSizes when running it on Windows Vista. Unfortunately, this issue is the result of a Vista security design decision and impacts a broad range of software applications (not just FolderSizes). The root problem is that (by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":1,"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.foldersizes.com\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}