Subscribe to How-To Geek

Welcome to the How-To Geek Forums

We encourage you to register on our forums and post any questions you might have. The How-To Geeks monitor this forum and will respond to your question quickly.

How-To Geek Forums » Windows Vista

Access denied to devmgmt.msc

(13 posts)
  • Started 1 year ago by agacult
  • Latest reply from agacult
  • Topic Viewed 2053 times

agacult
Posts: 23

Hi all! Last month I used the tip for removing old drivers to clean up my machine and it worked just fine, but since yesterday I've been getting this message at the command prompt "Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item." Today I find that I'm getting the above same message when I try to access Task Scheduler which I was accessing only a few weeks ago! I cannot recall doing anything serious to mess up my system. Since the time I removed the old drivers I've only updated my drivers, windows vista and used task scheduler to get past the UAC and create short cuts for ccleaner and regedit. Any ideas?

Posted 1 year ago #
Top
 
agacult
Posts: 23

Now I find I can't access most of the administrative tools, I tried changing the permissions from system to administrator but to no avail. This is the nasty message I'm getting, this one's for Task Scheduler

I also tried searching the web, it wasn't much help. Any advise on what to check or change would be appreciated.
Thanks.

Posted 1 year ago #
Top
 
agacult
Posts: 23

At last I get it right!(with some help, thanks Scott)

here's what I get when I try to access Task Scheduler and most of the administrative tools

and here's what I get when I try to access device manager from cmd running as administrator

Any thoughts?

Posted 1 year ago #
Top
 
ScottW
ScottW
Posts: 6609

Verify that your account is a member of the Administrators group:

net user %USERNAME%

Verify that the files have Read and Execute (RX) permission for Administrators:

icacls c:\windows\system32\devmgmt.msc

Sample output from my system:

Local Group Memberships *Administrators *Users


c:\windows\system32\devmgmt.msc NT SERVICE\TrustedInstaller:(F)
BUILTIN\Administrators:(RX)
NT AUTHORITY\SYSTEM:(RX)
BUILTIN\Users:(RX)

Posted 1 year ago #
Top
 
agacult
Posts: 23

Sorry Scott I don't quite follow you, where exactly do I go to verify if my account is a member of the Administrators group and how exactly do I verify if files have Read & Execute (RX) permission for Administrators

Posted 1 year ago #
Top
 
ScottW
ScottW
Posts: 6609

Hmm. You posted a screen shot of a Command Prompt window, so I assumed that you were familiar with it. Open a command prompt with elevated permission (run as admin) and enter the following commands:

> net user %USERNAME%
> icacls c:\windows\system32\devmgmt.msc

You don't type the ">". The output of the first command contains info about the current user account, including Local Group Memberships. That will tell us if your account is a member of Administrators. The second command checks the access control list (or permissions) for the given file. That will tell us if the files that you are trying to execute have permission for Administrators to run.

These things can be checked from the Windows GUI, but it's easier to copy text into a post than images.

Posted 1 year ago #
Top
 
agacult
Posts: 23

Typing the first command I get "The user name cannot be found" but the second command gave me exactly what shows up in your system.
I tried checking the security tab for Task Scheduler and my name is in there as a user and also as an administrator with all permissions ticked for administrator except special permissions.

Posted 1 year ago #
Top
 
ScottW
ScottW
Posts: 6609

What is your username? It should be in the environment variable, USERNAME. To see what it's set to, run:

> echo %USERNAME%

If the output of that command is not the same as what you think your username is, that may be part of the problem. Whatever your username is, run the net user command on it directly. For example, my username is "scott", so I would run:

> net user scott

This gives me the same output as before.

Posted 1 year ago #
Top
 
agacult
Posts: 23

OK, Scott a very funny thing is happening here, when I run the first command it gives me correctly my username which is my full name but when I run the second command
>net user "my full name"
it comes back with "The username could not be found"
very strange.
Would a picture of whats happening help?

Posted 1 year ago #
Top
 
ScottW
ScottW
Posts: 6609

Aha! It may be the problem that Windows has with spaces in commands. To include spaces, you use double-quotes around the entry. Let's say my username were Scott W, the command would be net user "scott w". Without the quotes it would just see "scott" and that would not be valid.

BTW: to copy text from the Command Prompt window, right-click in it and select "Mark". Select text with the mouse (click and drag with the left button), then press <Enter>. This will put the text into the clipboard and you can paste it here. That saves you from having to take a screen shot or post an image.

Posted 1 year ago #
Top
 
agacult
Posts: 23

Thanks ScottW I got it right this time, here's the output from >net user "USERNAME"

Local Group Memberships *Administrators

I don't see *Users like in yours, could that be the problem?

Posted 1 year ago #
Top
 
ScottW
ScottW
Posts: 6609

WARNING!! The net user command is dangerous and can change your password! By default, the syntax is "net user <username> <new_password>". I found this out the hard way, because it turns out when I ran the command "net user scott w", I changed my own password to "w". It took me a while to figure that out, all the while I was downloading password reset and cracking discs. Luckily I figured it out before having to break into my own account!

@Agacult, I have a feeling that the difference in your account settings is significant, but I don't know that for sure or why it would be. I suspect that the typical user account with Admin authority includes membership in Users. Can someone else please check your account memberships and tell us what they are? Thanks.

Posted 1 year ago #
Top
 
agacult
Posts: 23

I'll see what I can do.

Posted 1 year ago #
Top
 

RSS feed for this topic

Reply

You must log in to post.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.