Access Denied on Right Click My Computer Manage

Author:

phil

Created:

2009/10/06 - 03:35

Last Updated:

2009/10/15 - 14:40

Working on a customer's computer, I ran into an issue where right-clicking on My Computer, then clicking Manage would bring up an error box stating "Access Denied". Obviously, computer manager would not open. Not exactly sure what the problem was, I decided to do some research on it and found a few websites that explained the same problem with a "fix" of going into gpedit.exe and checking the policy related to computer manager. That is fine and dandy on a Windows XP Professional version, but XP Home is a different ballgame. The next fix was to manually check in the registry and see if the string was set to block access to computer manager. I checked a few places but didn't see anything out of the ordinary. What I DID notice however, was opening a command prompt and typing "regedit" brought up the classic error that it was an unrecognizable command. "That's weird..." I thought. I checked a few other common command line tools and they gave the same thing. So, I dug into the actual directory where regedit is located (C:\windows) and it opened without a problem.

That got me thinking that maybe the system variables were not set. This is something that back in the Windows 98 days and days of DOS, you would have to manually set some of the system variables and point where certain paths were. With Windows 2000 and XP (and later), these are pretty well taken care of out of the box.

Upon checking the system variables for the logged in user, I noticed that there were no User variables set and the required System variables such as PATH were not set either. I had a pretty good feeling that the missing information was the root to my problem and after adding the variables in, my problem was solved!

So, if you get an "Access Denied" box when right clicking on My Computer -> Manage, check the system variables first.

Now for the "How To" on setting up the right variables, if they happen to be missing:

1) Open the system properties (Easiest way is to right-click My Computer -> Properties) Long way is through Control Panel -> System

2) Click the Advanced tab

3) Click the Environment Variables button

4) Set (or verify) the following User variables for (username)

TEMP %USERPROFILE%\Local Settings\Temp
TMP %USERPROFILE%\Local Settings\Temp

5) Set (or verify) the following System variables

ComSpec %SystemRoot%\system32\cmd.exe
Path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
TEMP %SystemRoot%\TEMP
TMP %SystemRoot%\TEMP
windir %SystemRoot%

Note: Keep in mind that other programs might add to the above variables. That's OK. There will be other variables listed and that's OK too. But, if the variables are blank or missing altogether, you should probably go ahead and add them in. The above variables "should" be the default ones that were setup when Windows was installed.

That should do it! Though the settings might take affect immediately, I still recommend that you reboot the computer.


If you don't know how to add a variable, click the New button, then add the above information into the "New Variable" box.

For example:
Variable name: TEMP
Variable value: %USERPROFILE%\Local Settings\Temp

Post Comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Comments

Another solution


I found this thread and was having the same issues. What I found is that a software program had populated the system variables - path line till it was out of space. Once I removed about 20 occurances of the same path being stuffed into the path statement and saved it, the manage started working normally. So make sure that your path statement is not totally used up or does not have a truncated path at the end of the statement, as this will corrupt it. Thanks for the link!
Dave

THANKS!


Clear explanation... I was able to fix virus related collateral damage without a re-install. :)

error in my computer manage


actually i had all the variables correctly set, then also i'm getting the same error..i have also scanned for viruses..no virus detected..what should i do?

Variables are set, still not working...


Well, that's a good question... If all of the variables are set, you might check the actual permissions of the compmgmt.msc file which is located in "c:\windows\system32\compmgmt.msc"

Other than that, I'm not real sure what to tell you other than a reload might be in order...

Re: Access denied...


Hi Phil;

In my case, the painful trouble was that no file system was accessible, and a right click on My Computer produced the "Access denied" error right-away. Your instructions has been right on the money for me as it solved my problem like a charm.

Thanks indeed.

Thank you: Access Denied on Manage Computer


Thank you for this post. I have had this one issue only on trying to open the Manage menu option when right clicking My Computer. I had no other issues but that one. Running Compmgmt.msc got me around it but it was still annoying...and it worked until about 6 months ago...so something must've happened that wiped my User variables. Your post pointed it out for me and bingo, I am back in business with no reboot.

Thank you again, Mike.

The Wichita Computer Guy is hosted by one of the best hosting companies on the market: Hostgator.com. Not only do they provide unlimited domain addons, subdomains and parked domains, they also offer unlimited databases, unlimited hosting space and unlimited bandwidth! We have been using Hostgator for several years now and had great customer service support and almost 100% uptime. If you are looking for a website hosting company that provides everything you need for a powerful CMS based website, take a look at Hostgator.com!!