title: Using PowerShell to find out what process is preventing me from renaming a system file
body: <p>I am having trouble with Windows 10 app store and related app since a Windows restore. For troubleshooting purpose, I want to rename the "c:\program files\windowsapps". A process is preventing me from doing so. Since PowerShell usually point out what process is preventing you from doing an action, i thought about using it.</p>
  
  <pre><code>get-childitem -hidden -filter "WindowsApps" | Rename-Item -Newname {$_.name -replace "WindowsApps", "WindowsApps.Old"}
  </code></pre>
  
  <p>I don't get any error, yet the folder has not been renamed.
  I ran PowerShell as administrator to prevent access problem.
  I am sure the command is right, since I used it in other folder.</p>
  
  <p>Is there an other way to do this or is something missing in my code ?</p>