You cannot rename a User Profile folder in Windows 11/10 if one or more of the following conditions are true: You are not signed in as an administrator. You are signed in to the same user account, ...
The first and most convenient method to change administrator on Windows 11 is to use the Settings app. You can open Windows Settings app and tweak some settings to switch the administrator account.