Access to content.ie5 Windows 7

[SOLVED] Windows 7 cmd prompt gives "Access is denied." error for every command

Windows 7 Miscellaneoushttps: //social.technet.microsoft.com/Forums/en-US/725d44a6-fd10-40a3-9049-e0ce2a5779dd/solved-windows-7-cmd-prompt-gives-quotaccess-is-deniedquot-error- for-every-commandQuestion164 / 9/2013 6:13:14 AM3 / 6/2018 1:41:28 PM This forum is used by Microsoft to make general announcements, post FAQs, and resources about Windows 7. Use this forum to discuss miscellaneous issues that cannot be covered in any other Windows 7 forum. 32
  • Question

  • text / html4 / 9/2013 6:13:14 AMaagha0

    It seems that other than the 'dir' command, every command I run from my dos prompt, I get an "Access is denied." message. Example:

    C: \ Users \ aagha> ipconfig
    Access is denied.

    I've checked my UAC settings and made sure they're set to "Never Notify".

    I've also tried to run sfc.exe, but can't:

    C: \ Users \ aagha> sfc.exe
    Access is denied.

    Finally, I've tried to run cmd.exe as administrator, but no luck.

    The one thing I've noticed is that if I go to cmd.exe's Properties and then the Security tab, I see that TrustedInstaller has Full control, but SYSTEM, Administrators and Users have only:

    • Read & execute and
    • Read

    I've tried to change permissions by editing, but when I do so, I get an "Access is denied" message.

    I've run out of ideas on what else to try and would appreciate the help.


    • Edited byaaghaSunday, April 21, 2013 6:37 AM

Answers

  • text / html4 / 11/2013 8:14:42 AMtracycai0
    Right click c: \ windows \ system32 folder or c: \ windows \ system32 \ ipconfig.exe and click Properties. Click on the security tab and check for the permission for users. Make sure that the read & execute is allowed.

    Tracy Cai
    TechNet Community Support

    • Marked as answer bytracycaiMonday, April 15, 2013 9:15 AM
  • text / html4 / 20/2013 5:31:21 PMaagha0

    Hi Tracy - Sorry for not getting back to you sooner, I was traveling on business.

    I did as you suggested. Clicked on the C: \ windows \ system32 folder and went to Properties and clicked on the security tab. The following group or user names are listed:

    • CREATOR OWNER
    • SYSTEM
    • Administrators (SunTzu \ Administrators)
    • Users (SunTzu \ Users)
    • TrustedInstaller

    For each of these, here's what's marked as Permissions:

    • CREATOR OWNER: Special permissions
    • SYSTEM: Special permissions
    • Administrators (SunTzu \ Administrators): Special permissions
    • Users (SunTzu \ Users): Read & execute, List folder contents, Read
    • TrustedInstaller: List folder contents, Special permissions

    If I do the same and look at ipconfig.exe in the same folder, here's the users that are there:

    • SYSTEM
    • Administrators (SunTzu \ Administrators)
    • Users (SunTzu \ Users)
    • TrustedInstaller

    Their permissions for this one file are as follows:

    • SYSTEM: Read & execute, Read
    • Administrators (SunTzu \ Administrators): Read & execute, Read
    • Users (SunTzu \ Users): Read & execute, Read
    • TrustedInstaller: Full control, Modify, Read & execute, Read, Write

    I tried to go to a dos prompt and try ipconfig again, and this is what I got:

    C: \ Users \ aagha> ipconfig.exe
    Access is denied.

    Here's running the "path" command. C: \ windows \ system32 is indeed there:

    C: \ Users \ aagha> path
    PATH = C: \ Program Files \ Common Files \ Microsoft Shared \ Windows Live;C: \ Windows \ syst
    em32; C: \ Windows; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v
    1.0 \; C: \ Program Files \ ThinkPad \ Bluetooth Software \; C: \ Program Files \ ThinkPad \ Blu
    etooth Software \ syswow64; C: \ Program Files (x86) \ Common Files \ Lenovo; C: \ Program F
    iles (x86) \ Common Files \ Ulead Systems \ MPEG; C: \ Program Files (x86) \ Lenovo \ Access
    Connections \; C: \ Program Files \ Common Files \ Lenovo; C: \ Program Files (x86) \ Lenovo \
    Client Security Solution; C: \ Program Files \ Lenovo \ Client Security Solution; C: \ Pro
    gram Files \ jEdit; C: \ Program Files (x86) \ RSA SecurID Token Common; C: \ SWTOOLS \ Read
    yApps; C: \ Program Files (x86) \ QuickTime \ QTSystem \; C: \ Program Files \ Common Files \ M
    icrosoft Shared \ Windows Live; C: \ Program Files \ Common Files \ Microsoft Shared \ Wind
    ows Live; C: \ Windows \ system32; C: \ Windows; C: \ Windows \ System32 \ Wbem; C: \ Windows \ Syst
    em32 \ WindowsPowerShell \ v1.0 \; C: \ Program Files \ ThinkPad \ Bluetooth Software \; C: \ Pr
    ogram Files \ ThinkPad \ Bluetooth Software \ syswow64; C: \ Program Files (x86) \ Common F
    iles \ Lenovo; C: \ Program Files (x86) \ Common Files \ Ulead Systems \ MPEG; C: \ Program Fi
    les (x86) \ Lenovo \ Access Connections \; C: \ Program Files \ Common Files \ Lenovo; C: \ Pro
    gram Files (x86) \ Lenovo \ Client Security Solution; C: \ Program Files \ Lenovo \ Client
    Security Solution; C: \ Program Files \ jEdit; C: \ Program Files (x86) \ RSA SecurID Toke
    n Common; C: \ SWTOOLS \ ReadyApps; C: \ Program Files (x86) \ QuickTime \ QTSystem \;% JAVA_H
    OME% \ bin;% ANT_HOME% \ bin; C: \ cygwin \ bin
    • Marked as answer byaaghaSaturday, April 20, 2013 5:31 PM

All replies

  • text / html4 / 9/2013 9:07:18 AMarnavsharma1

    Is your ID included in Administrators group of the local machine? If no, then try adding and check.

    Also, if the machine in domain or its in work group.


    Arnav Sharma | Facebook | Twitter Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • text / html4 / 9/2013 11:19:21 AMHoratioL MCP0

    aagha,

    got a lot of questions here, but first, in addition to Arnav's advice, how 'bout providing more info:

    what kind of environment you operate in? this your personal 'computer? a networked at work computer .... what?

    you just get this comp?

    got anything to lose by "wipin 'the slate and starting over?

    how long has this been going on?

    who IS the "TrustedInstaller"? Get with them and have them fix the problem

    Statement / observation: You're definitely not the admin

    Just need a tad more detail here aagha ...

    thanks

     


    horatio

  • text / html4 / 9/2013 4:25:50 PMaagha1

    Hi.

    Yes, my id is included in the Administrators group. When I go to: Control Panel \ User Accounts and Family Safety \ User Accounts \ Change Your Account Type, my id, 'aagha' is listed listed as 'Administrator'.

    Regarding your second question, the machine is in a work group.

  • text / html4 / 9/2013 4:29:13 PMaagha0
  • text / html4 / 10/2013 7:33:57 AMtracycai0

    Please check the following:

    1. Scan your computer with the antivirus.
    2. Create a new user account to test the issue.
    3. Open c: \ windows \ system32 properties> security tab, check if the users have the permission to execute the files.


    Tracy Cai
    TechNet Community Support

  • text / html4 / 11/2013 2:48:00 AMaagha0

    Thanks Tracy.

    1. Scanned my computer for viruses: Nothing found.

    2. Created a new user account, made it Admin, and had the same issue when I opened a dos prompt. Trusted Installer still had full permissions, and Administrator had same as above.

    3. I'm not sure what you mean. Open what?

  • text / html4 / 11/2013 8:14:42 AMtracycai0
    Right click c: \ windows \ system32 folder or c: \ windows \ system32 \ ipconfig.exe and click Properties. Click on the security tab and check for the permission for users. Make sure that the read & execute is allowed.

    Tracy Cai
    TechNet Community Support

    • Marked as answer bytracycaiMonday, April 15, 2013 9:15 AM
  • text / html4 / 20/2013 5:31:21 PMaagha0

    Hi Tracy - Sorry for not getting back to you sooner, I was traveling on business.

    I did as you suggested. Clicked on the C: \ windows \ system32 folder and went to Properties and clicked on the security tab. The following group or user names are listed:

    • CREATOR OWNER
    • SYSTEM
    • Administrators (SunTzu \ Administrators)
    • Users (SunTzu \ Users)
    • TrustedInstaller

    For each of these, here's what's marked as Permissions:

    • CREATOR OWNER: Special permissions
    • SYSTEM: Special permissions
    • Administrators (SunTzu \ Administrators): Special permissions
    • Users (SunTzu \ Users): Read & execute, List folder contents, Read
    • TrustedInstaller: List folder contents, Special permissions

    If I do the same and look at ipconfig.exe in the same folder, here's the users that are there:

    • SYSTEM
    • Administrators (SunTzu \ Administrators)
    • Users (SunTzu \ Users)
    • TrustedInstaller

    Their permissions for this one file are as follows:

    • SYSTEM: Read & execute, Read
    • Administrators (SunTzu \ Administrators): Read & execute, Read
    • Users (SunTzu \ Users): Read & execute, Read
    • TrustedInstaller: Full control, Modify, Read & execute, Read, Write

    I tried to go to a dos prompt and try ipconfig again, and this is what I got:

    C: \ Users \ aagha> ipconfig.exe
    Access is denied.

    Here's running the "path" command. C: \ windows \ system32 is indeed there:

    C: \ Users \ aagha> path
    PATH = C: \ Program Files \ Common Files \ Microsoft Shared \ Windows Live;C: \ Windows \ syst
    em32; C: \ Windows; C: \ Windows \ System32 \ Wbem; C: \ Windows \ System32 \ WindowsPowerShell \ v
    1.0 \; C: \ Program Files \ ThinkPad \ Bluetooth Software \; C: \ Program Files \ ThinkPad \ Blu
    etooth Software \ syswow64; C: \ Program Files (x86) \ Common Files \ Lenovo; C: \ Program F
    iles (x86) \ Common Files \ Ulead Systems \ MPEG; C: \ Program Files (x86) \ Lenovo \ Access
    Connections \; C: \ Program Files \ Common Files \ Lenovo; C: \ Program Files (x86) \ Lenovo \
    Client Security Solution; C: \ Program Files \ Lenovo \ Client Security Solution; C: \ Pro
    gram Files \ jEdit; C: \ Program Files (x86) \ RSA SecurID Token Common; C: \ SWTOOLS \ Read
    yApps; C: \ Program Files (x86) \ QuickTime \ QTSystem \; C: \ Program Files \ Common Files \ M
    icrosoft Shared \ Windows Live; C: \ Program Files \ Common Files \ Microsoft Shared \ Wind
    ows Live; C: \ Windows \ system32; C: \ Windows; C: \ Windows \ System32 \ Wbem; C: \ Windows \ Syst
    em32 \ WindowsPowerShell \ v1.0 \; C: \ Program Files \ ThinkPad \ Bluetooth Software \; C: \ Pr
    ogram Files \ ThinkPad \ Bluetooth Software \ syswow64; C: \ Program Files (x86) \ Common F
    iles \ Lenovo; C: \ Program Files (x86) \ Common Files \ Ulead Systems \ MPEG; C: \ Program Fi
    les (x86) \ Lenovo \ Access Connections \; C: \ Program Files \ Common Files \ Lenovo; C: \ Pro
    gram Files (x86) \ Lenovo \ Client Security Solution; C: \ Program Files \ Lenovo \ Client
    Security Solution; C: \ Program Files \ jEdit; C: \ Program Files (x86) \ RSA SecurID Toke
    n Common; C: \ SWTOOLS \ ReadyApps; C: \ Program Files (x86) \ QuickTime \ QTSystem \;% JAVA_H
    OME% \ bin;% ANT_HOME% \ bin; C: \ cygwin \ bin
    • Marked as answer byaaghaSaturday, April 20, 2013 5:31 PM