how to run a command with admin priviledges when I don't have admin account on my Win7 computer

I am trying to open cmd with admin priviledges. That's because when executing a command I received a message that I don't have sufficient priviledges to run this command (mklink).

The problem is that I don't see an admin or Administrator account on my Win7 computer. When I go to Control Panel -> Accounts -> Manage other account, there are only 3 accounts:

  • MyName
  • ASP.NET Machine Account
  • Guest

MyName account is of type Administrator, so I think it should have administrative priviledges. That's the account I am currently logged in. However, for some reason, it is not sufficient to run mklink command.

How to solve this problem?


You need to run the cmd.exe program as administrator. Find the cmd.exe program and right-click on it, select Run as administrator.

enter image description here