I've run into a very weird issue on a build server where it won't let me rename any file 'locked' on the entire D drive as it throws a permissions error.
I have local admin rights which allow me to rename a file locked on the C drive and rename a file on the D drive to any other name. This affects all directories and extensions.