title: Powershell - rename folder in C:\Windows\
body: <p>I need some help. I need to rename a few folder in c:\Windows\ but it keeps saying that access is denied. I'm running poweshell as admin.</p>
  
  <pre><code>Rename-Item -path 'C:\Windows\SoftwareDistribution' -NewName 'C:\Windows\SoftwareDistribution.bak'
  </code></pre>
  
  <p>I get the return: </p>
  
  <pre><code>Rename-Item : Access to the path 'C:\Windows\SoftwareDistribution' is denied.
  At line:1 char:2
  +  Rename-Item -path 'C:\Windows\SoftwareDistribution' -NewName 'C:\Win ...
  +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : WriteError: (C:\Windows\SoftwareDistribution:String) [Rename-Item], IOException
      + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand
  </code></pre>