1

I got a new laptop and while setting it up, it asked microsoft account. So I gave my microsoft account. Now I could use the laptop using that account for regular browsing and other activities. But the problem is when I am trying to execute some commands, it says I am not administrator or I need to run the cmd as administrator.

What I don't get is, I am logging into the windows using microsoft account. I see a folder in C:/Users/. Now am I a local user or a admin user?

Microsoft account creates a local user by default for windows?

Why do I need to run command prompt as an administrator for some commands? Am I not admin for my own system? If not, who am I while using the system? Microsoft account user or local user?

  • Do you have this problem with all commands or some? Give examples. – harrymc Oct 13 '19 at 18:52
  • "Microsoft account creates a local user by default for windows?" This question has nothing to do with domain vs local accounts; it's to do with standard vs administrator accounts. :) – Mr Ethernet Oct 13 '19 at 18:54
  • I ran across this problem when i executed "pip install <packagename>" command. I have installed python for "all users" and so it was installed in C:/Python3.7/. – newbie Oct 14 '19 at 5:50
0

The first Windows Account (Vista and above) is a member of the Administrator's group. Check that but it will be if this was the first user.

That said, some programs still require approval to run (I have several here) so if you are being challenged for a few - no issue.

This is true (and the same) for a Microsoft Account and a Local Account. They work the same way

| improve this answer | |
0

To get you out of this situation of not having an administrator account, the following procedure is used when a local administrator loses his rights and may also work in your case. You will be creating a new local account and giving it administrator permissions, then you can login using this new account as administrator.

  • Open Settings > Accounts > Family & other users
  • Click Add someone else to this PC
  • Click I don't have this person’s sign-in information
  • Click Add a user without a Microsoft account
  • Type a user name and click Next to add a new local account (non-admin)
  • Press Win+R and in the Run dialog type cmd and hit Enter
  • In the Command Prompt type shutdown /r /o and press Enter
  • After Windows 10 restarts, in the "Choose an option" screen, click Troubleshoot > Advanced options > Startup Settings and then click Restart
  • On the "Startup Settings" screen, press 4 to enable Safe mode
  • After Windows 10 starts into safe mode:
    • Open Control Panel
    • Go to User Accounts > Manage another account
    • Select the new local account you added and click Change the account type
    • Select Administrator and click Change Account Type to change the account from a standard user to an administrator
  • Restart into normal mode and sign-in with the new Administrator account.

For more details with screenshots see the article
Lost Administrator Rights in Windows 10, What to Do.

| improve this answer | |
  • That's an excellent answer to a problem the user does not have. He never lost admin rights. He created the first account on a brand new computer, so he must be an admin. You can't just randomly "lose" them. The user is seeing the User Account Control popup and is assuming that he isn't an administrator. He never says he can't run commands, only that he needs to run them as an administrator. It's clearly User Account Control. – Mr Ethernet Oct 13 '19 at 20:14
  • @wrecclesham: I'm not sure of this. It's logical, but logic doesn't always work in Windows. I haven't managed to find any documentation about what the local permissions are for first login from a Microsoft account, so the "must" part is unproven. Until I find some more information, which Microsoft made no effort to furnish, I don't take this for a given. – harrymc Oct 13 '19 at 20:20
  • 1
    My money's on him either running commands that need to be run in an elevated Command Prompt in a regular one or he's seeing UAC and assuming that his account doesn't have admin rights. – Mr Ethernet Oct 13 '19 at 20:23
  • @wrecclesham: Perhaps so. My answer is intended to help the poster out of a situation, which perhaps he got himself into by revoking his own Administrator permissions, or by falling into another Microsoft trap. – harrymc Oct 13 '19 at 20:26
  • 1
    @newbie - I have put together hundreds of computer over many years for clients. Unless you purposely removed yourself, the first user is a member of Administrators. True 100% of the time for me – John Oct 13 '19 at 20:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.