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.
This post will show you how to create a Local Administrator Account when you can’t sign in, using the UTILMAN.exe command line tool. Since you can’t sign in to Windows 11/10 and get to the desktop, ...