I am encountering an issue with renaming a folder located in “C:\Windows\System32”
I have tried the following scripts already, but it’s not working if the folder is inside the System32 directory.
move “C:\Windows\System32\folder_new” “C:\Windows\System32\folder_old”
dos rename “C:\Windows\System32\folder_new” “C:\Windows\System32\folder_old”
waithidden cmd.exe /c rename “C:\Windows\System32\folder_new” “C:\Windows\System32\folder_old”
waithidden powershell.exe Rename-Item -Path “C:\Windows\System32\folder_new” -NewName “C:\Windows\System32\folder_old”