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.
get-childitem -hidden -filter "WindowsApps" | Rename-Item -Newname {$_.name -replace "WindowsApps", "WindowsApps.Old"}
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.
Is there an other way to do this or is something missing in my code ?