title: Working around the "You don't currently have permission to access this folder" issue for PowerShell
body: <p>When navigating to <code>C:\Users\%SomeUsername%</code> as an administrator on a Windows 2008 R2 server I get the error <code>You don't currently have permission to access this folder</code>, <code>Click Continue to permanently get access to this folder</code>.  Clicking <code>Continue</code> resolves this problem.</p>
  
  <p>If I try the same by PowerShell (e.g. <code>get-childitem 'C:\Users\' -Directory | get-childitem -Force</code>; or some variant), any profiles to which I've not already granted myself access explicitly give the error <code>Access to the path 'C:\Users\%SomeUsername%' is denied.</code>; even with the Force switch included.</p>
  
  <p>Is there a way to "click continue" via PowerShell; i.e. have the system give me access to anything which I don't strictly have access to, though as an administrator on the server can grant myself access to.  Ideally this would be done as I access the files (e.g. by a switch on the <code>Get-Item</code> command) rather than having to code something to explicitly go through all files checking and amending permissions.</p>