If you have a Microsoft account, you may need to use the local account name instead. To see a list of accounts, type:
If your current account is a standard user and no other admin accounts exist, you must use the Windows Recovery Environment (WinRE). how to make yourself an administrator windows 11
Note: It is highly recommended to disable this account once you have fixed your permissions by running the same command but replacing /active:yes with /active:no. What to Do if You Are Locked Out If you have a Microsoft account, you may
Now, sign out of that account and sign back in for the changes to take effect. If you have a Microsoft account