Helping people with computers... one answer at a time.

In Windows Vista and Windows 7, your account may be administrator but you still may be denied access, saying you need to be administrator. I'll show why and what to do.

My computer says that I need to be the administrator [to perform a task], but I already am! Any ideas as to what is happening?

Sure.

You're not the administrator. Not really.

Oh, sure, you may think that you're the administrator. And Windows may have even lead you to believe that you're the administrator.

But, as the result of a new security feature introduced in Windows Vista and made less obnoxious in Windows 7, you're not the real administrator by default.

But you can be.

Administrator ... But Not

UAC, or User Account Control, is an important security feature that, in essence, makes the account that you've created to be the administrator not have administrative privileges by default.

"Use 'Run as administrator' with caution and only when you're sure you need to use it."

The reason is that most users run as administrator on their own machine. That means that without this feature, any programs you run also have full administrative privileges.

Including malware.

Whether you want it or not.

The solution is to think of your administrator account more like "administrator capable", rather than being the actual real-life administrator.

By administrator-capable, I mean that Windows will often ask you for permission before performing tasks that require true administrative access and you'll just have to say yes or no.

UAC asking permission

Accounts which are not administrator-capable will have to supply the administrator password to prove that the user has the authorization to do something that requires administrative privileges.

Asking Versus Denying

Not all programs are written in such a way that they can ask and it's not always possible to ask in every situation. The best that can happen then is to deny whatever it is you're attempting if it requires administrative access.

The solution is to run the program as administrator. Because your account is administrator-capable, you can run a program with full administrative privileges.

Many programs have this option, including the Windows Command Prompt, which is where I most often use this trick. I'll use the more commonly used Windows Explorer as an example.

Right-click on the Windows Explorer icon:

Right-clicking on the Windows Explorer icon

Now, right-click again, but this time, on the Windows Explorer line in that pop-up menu:

Right-clicking on the Windows Explorer line in the pop-up menu

As you can see, there's what we're looking for: "Run as administrator". Click on that. You'll get the UAC confirmation prompt. After clicking Yes, that instance of Windows Explorer has full administrative privileges.

Cautions

It's tempting to just leave that Windows Explorer open and running so that you'll never bump into the restriction, but this opens up risks.

Any program that you start from within that copy of Windows Explorer inherits administrative privileges. If you run your mail, your browser, your word processing program or instant messaging client by double-clicking on their icon in this instance of Windows Explorer, they'll be able to do anything. And that includes any malware, such as emailed attachments, that they might "invite" onto your system. Essentially, you'll have completely subverted the security measures that the UAC puts into place.

In addition, Windows treats file ownership and security differently, depending on what user you are and whether you have full administrative privileges. In other words, the files that you create with full administrative privileges might not be accessible to you without those privileges - even though you were logged in with the same administrator-capable account.

In short, the security put into place with the UAC is there for an important reason and helps keep your machine safe from many forms of malware and exploits. Use "Run as administrator" with caution and only when you're sure that you need to use it. And even then, use it only for those things that require it. Close the program (Windows Explorer in our example above) as soon as you no longer need the extra capabilities.

Article C4757 - March 3, 2011 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
26 Comments
Anthony
August 21, 2012 5:39 AM

Hi Leo, I followed your instructions but this did not work for me. I ended up getting another box saying "File Access Denied". Where do I go from here Leo

Ad
November 10, 2012 11:01 AM

I'm on Win XP. Admin account - the only one. Can not install SW - it asks for Admin rights... It used to be a part of a domain but no longer. It's connected to MSHOME network. No password and no problem logging in. Please help. Thanks very much - Ad

Ad
November 10, 2012 11:08 AM

Trying to install a wireless USB adapter and it gives an Error #1303 -the installer has insufficient privileges to access this directory: c:\program files\netgear.
There's only one account - Administrator
Thanks again.
Ad

Richard
December 28, 2012 10:42 PM

Thanks for the article for I just had an experience where I had to do a system recovery and I wondered why the computer generated these "new" accounts. Found them when after the recovery I was cleaning up and reloading things back into users personal stuff. Click open C:, opened Users, and sat back and said "WHAAAT!?" Who are these accounts I didn't set up. I know how to access the "hidden" admin account, so I'm glad I came across this article before possibly inflicting damage. To me it's a "looks ugly, but it works" situation. It was a frustrating, long time to find an answer and you had it! I am very glad to have found your newsletter and becoming a subscriber. That deserves a Facebook "like". Thank you for doing what you do.

Makade Vassele
March 21, 2013 9:05 PM

okay I just updated to windows 8 and im trying to activate it for sure but it says " cant activate at this time, please contract your system admin or technical support department." please help