PDA

View Full Version : "Access is Denied" Dos prompt error!


Reece
08-04-11, 06:05 PM
I have had this problem for several months or more, in a dos shell (window) trying to run any applications such as ipconfig, chkdsk, results in "Access is Denied", can run dos commands such as "dir" etc!:hmmm: I have tried restoring permissions to the system32 folder, restoration is restored but didn't fix the problem. :doh:
Any ideas on this problem?:DL

Edit:
I have just checked the "Prevent access to 16-bit applications" policy and is "Not Configured", tried changing to Disabled but no change! :damn:

I'm using XP Pro.

Reece
08-04-11, 09:36 PM
Well this is weird, if I copy cmd.exe to any other folder than Windows\System32 and execute a dos window from here everything works 100%, so that is one way out :hmmm: but it seems weird since ipconfig.exe and chkdsk.exe reside in the Windows\System32 folder yet they will execute within the dos window with no problems!!:doh::-?
Surely this has to be access rights to the System32 folder?:hmmm:

kiwi_2005
08-04-11, 09:52 PM
this might help the access denied problem for cmd.exe and ipconfig

http://www.securityaegis.com/running-commands-in-a-restricted-command-prompt/

Reece
08-04-11, 10:37 PM
Good thought but it is definitely not that, however I believe it is a Group Policy that is causing this issue, just that there are so many variables!:yep:

Arclight
08-05-11, 08:28 AM
I was thinking NTFS permissions; might get around it by giving your user account more permissions for the system32 folder.


Never had such issues though, always used administrator accounts and the first thing I disable in Vista/Win7 is UAC, so not going by experience in this case.

longam
08-05-11, 04:55 PM
Good thought but it is definitely not that, however I believe it is a Group Policy that is causing this issue, just that there are so many variables!:yep:

Run rsop.msc in the run cmd and see what is enabled in the group policy.

Are you a local administrator?

Reece
08-05-11, 08:21 PM
I ran that and everything is "not defined", blank or not set!:hmmm:

Are you a local administrator?Wouldn't know, I am the only user!