• How to fix “Error 5: Access is denied”

    Home » Forums » AskWoody support » Windows » Windows Vista, XP and earlier » Questions: Vista, XP back to 3.1 » How to fix “Error 5: Access is denied”

    Author
    Topic
    #490762

    Got a call from a non-profit group I assist, that one of their desktop PC’s was acting up (Vista Home Basic 32-bit). First thing I noticed was that it wouldn’t make a network connection. Right clicked on the network icon in the Taskbar and selected Diagnose and Repair. Got a message that Network Diagnostics cannot run because the Diagnostics Policy Service is not running. Opened Service Control Manager to try and start that service, and got a message that Windows could not start the service on Local Computer, followed by Error 5: Access is denied.

    A Full Scan with Malwarebytes and MS Security Essentials found nothing. From an F8 start, System Repair did not help, and every System Restore point I tried failed, as far back as they went. There’s a Windows Update icon showing in the Taskbar, but when I try to open that, it shows Windows Update has never been run (and can’t run now, of course, because networking is munged up). Computer Properties says SP2 is installed. Any suggestions?

    Viewing 10 reply threads
    Author
    Replies
    • #1409514

      Is the logon you are using a member of the Administrator group?

      Joe

      --Joe

      • #1409565

        Is the logon you are using a member of the Administrator group?

        Joe

        Yes.

    • #1409549

      Got a message that Network Diagnostics cannot run because the Diagnostics Policy Service is not running.. Any suggestions?

      JJ,

      Hello… Try Start> Run> net start dhcp… then OK out. ( Dynamic Host Configuration Protocol ) Also as Joe says sounds like a UAC Permissions problem ..check in control panel User Accounts.:cheers: Regards Fred

      • #1409629

        JJ,

        Hello… Try Start> Run> net start dhcp… then OK out. ( Dynamic Host Configuration Protocol ) Also as Joe says sounds like a UAC Permissions problem ..check in control panel User Accounts.:cheers: Regards Fred

        Using that command, I get “System error 5 has occurred. Access is denied.” What am I supposed to be looking for in User Accounts?

        • #1409635

          Using that command, I get “System error 5 has occurred. Access is denied.” What am I supposed to be looking for in User Accounts?

          JJ,

          Hello… You want to look in “Add or Remove user Accounts ” and see who is listed as “Administrator” and has permission…If there is no “Admin” you need to establish one.:cheers: Regards Fred

          PS: Is there a “Run As Administrator” in the right click context menu?

          • #1409654

            JJ,

            Hello… You want to look in “Add or Remove user Accounts ” and see who is listed as “Administrator” and has permission…If there is no “Admin” you need to establish one.:cheers: Regards Fred

            PS: Is there a “Run As Administrator” in the right click context menu?

            There is only one account, and it is a member of Administrators. UAC is enabled. I checked a couple program shortcuts on the desktop, and Run As Administrator is there.

            • #1409656

              There is only one account, and it is a member of Administrators. UAC is enabled. I checked a couple program shortcuts on the desktop, and Run As Administrator is there.

              JJ,

              Hello… If the “Run AS doesn’t work” see these ” Services” Screen Shots. There might be a clue in them :cheers: Regards Fred

              PS: You could also try “Taking Ownership” of that “Executable ” in the “Path” shown in screen shot
              PPS: Use this method ( if not already available) for adding “Take Ownership ” to Context Menu Method #1 [/url] or this one Winbubble [/url]

            • #1409813

              I didn’t see anything useful in the screen shots, and although I used the Take Ownership reg hack to take ownership of the WindowsSystem32 folder, it didn’t help either. Is there any way to do the equivalent of a System Repair in Vista, like I’ve done before in XP? If so, do you think it might fix this problem? I don’t have a Vista Home Basic disk, but I’m sure I can track down an ISO of it.

            • #1409871

              Is there any way to do the equivalent of a System Repair in Vista, like I’ve done before in XP? If so, do you think it might fix this problem? I don’t have a Vista Home Basic disk, but I’m sure I can track down an ISO of it.

              JJ,
              Hello… Yes…. you can run from an “Elevated Command Prompt” “sfc /scannow” (system file checker) No quotes and space after sfc…This will fix any corrupt files… :cheers: Regards Fred

              PS: I know that i have seen a “Reg” hack to start this service .. I’ll do some searching and post back

            • #1409921

              Is there any way to do the equivalent of a System Repair in Vista, like I’ve done before in XP? If so, do you think it might fix this problem? I don’t have a Vista Home Basic disk, but I’m sure I can track down an ISO of it.

              I think you are talking about a Repair install. I would run SFC as Fred suggested first and if that doesn’t work, you could try a Vista Repair install:
              http://www.vistax64.com/tutorials/88236-repair-install-vista.html

              Jerry

            • #1410138

              I think you are talking about a Repair install. I would run SFC as Fred suggested first and if that doesn’t work, you could try a Vista Repair install:
              http://www.vistax64.com/tutorials/88236-repair-install-vista.html

              Jerry

              SFC didn’t help, so I downloaded an ISO and burned an install CD. Started through the repair install procedure, and have hit a roadblock. The install routine told me I have to remove Windows PowerShell before doing the repair, but when I looked in Installed Programs and Installed Updates, I don’t see PowerShell.

    • #1409576

      What is the startup type for Diagnostic Policy Service?

      Joe

      --Joe

      • #1409587

        What is the startup type for Diagnostic Policy Service?

        Joe

        Automatic.

    • #1409601

      Have you checked the Event Log for information on why the service does not start on a boot?

      Joe

      --Joe

      • #1409630

        Have you checked the Event Log for information on why the service does not start on a boot?

        Joe

        Am I supposed to use Event Viewer to check logs? If so, which specific log should I be looking at?

    • #1409652

      Yes, use the Event Viewer. Check the System log and the Application log.

      Joe

      --Joe

      • #1409655

        Yes, use the Event Viewer. Check the System log and the Application log.

        Joe

        The System log shows several entries “The DHCP client service has terminated with the following error: Access is denied.” There are many error entries in the Applications log, but no pattern to them that I could see.

    • #1410146

      From: http://social.technet.microsoft.com/Forums/windows/en-US/5debb397-cedf-4822-bd7c-cc08f2d38ef8/how-to-uninstall-windows-powershell

      know this is old, but just in case someone else has this issue.

      Go to Windows Update – View Update History

      You should see “Windows PowerShell 2.0 and WinRM 2.0 for Windows Vista (KB968930)”

      Then look through Installed Updates and you should see “Windows Management Framework Core (KB968930)”

      The KB#’s are the same. Uninstall it. Reboot. Run the upgrade.

      Worked like a champ for me…though ur milage may vary

      or

      Here is my quick fix:

      Open “Computer” and navigate into your Local Disk C: (or wherever your windows install is located).

      Navigate into the Windows folder and then the System32 folder.
      (C:WindowsSystem32)

      Note: If you are running a 64-bit version of windows, it is also listed in the SysWow64 folder.
      (C:WindowsSysWow64)

      Find the “WindowsPowerShell” folder. Right-click on it and click Rename.

      Rename the folder to WindowsPowerShell2.

      Close the window and attempt to perform the upgrade again.

      You will still have the shortcuts for Powershell in your start menu and anywhere else they appear, you can right-click them and delete them.

      OR

      If your feeling spunky, you can rename the folder back to WindowsPowerShell, after the upgrade, despite it being incompatible…but I wouldn’t recommend it.

      • #1410213

        Thanks, renaming the PowerShell folder made the Repair Install go ahead. PC is up and running properly.

    • #1410246

      Happy to hear it worked.

      Jerry

    • #1479125

      Got a call from a non-profit group I assist, that one of their desktop PC’s was acting up (Vista Home Basic 32-bit). First thing I noticed was that it wouldn’t make a network connection. Right clicked on the network icon in the Taskbar and selected Diagnose and Repair. Got a message that Network Diagnostics cannot run because the Diagnostics Policy Service is not running. Opened Service Control Manager to try and start that service, and got a message that Windows could not start the service on Local Computer, followed by Error 5: Access is denied.

      A Full Scan with Malwarebytes and MS Security Essentials found nothing. From an F8 start, System Repair did not help, and every System Restore point I tried failed, as far back as they went. There’s a Windows Update icon showing in the Taskbar, but when I try to open that, it shows Windows Update has never been run (and can’t run now, of course, because networking is munged up). Computer Properties says SP2 is installed. Any suggestions?

      Diagnostic policy service could not start on local computer. access denied.

      Go to start ,search and type: cmd, right click on returned cmd.exe and select “run as administrator” at the prompt type:
      net localgroup Administrators /add networkservice
      press enter then type:
      net localgroup Administrators /add localservice
      press enter then type:
      exit
      press enter and restart your computer

      Open services and make sure the service is started.

      • #1515423

        Diagnostic policy service could not start on local computer. access denied.

        Go to start ,search and type: cmd, right click on returned cmd.exe and select “run as administrator” at the prompt type:
        net localgroup Administrators /add networkservice
        press enter then type:
        net localgroup Administrators /add localservice
        press enter then type:
        exit
        press enter and restart your computer

        Open services and make sure the service is started.

        Thanks a lot.. Randy, was almost at the brink of formating and reinstalling my system, the 2 commands worked like a charm and saves me many hours and days.

      • #1545415

        This worked perfectly…Thanks Randy!!

        Diagnostic policy service could not start on local computer. access denied.

        Go to start ,search and type: cmd, right click on returned cmd.exe and select “run as administrator” at the prompt type:
        net localgroup Administrators /add networkservice
        press enter then type:
        net localgroup Administrators /add localservice
        press enter then type:
        exit
        press enter and restart your computer

        Open services and make sure the service is started.

    • #1479155

      In safe mode is there an admin account that is not available otherwise? If so try it. When the login screen shows up is there a left arrow of some sort? That might get you to the admin login I’m suggesting. Good luck.

    • #1479171

      In safe mode is there an admin account that is not available otherwise? If so try it. When the login screen shows up is there a left arrow of some sort? That might get you to the admin login I’m suggesting. Good luck.

    • #1518865

      Got a call from a non-profit group I assist, that one of their desktop PC’s was acting up (Vista Home Basic 32-bit). First thing I noticed was that it wouldn’t make a network connection. Right clicked on the network icon in the Taskbar and selected Diagnose and Repair. Got a message that Network Diagnostics cannot run because the Diagnostics Policy Service is not running. Opened Service Control Manager to try and start that service, and got a message that Windows could not start the service on Local Computer, followed by Error 5: Access is denied.

      A Full Scan with Malwarebytes and MS Security Essentials found nothing. From an F8 start, System Repair did not help, and every System Restore point I tried failed, as far back as they went. There’s a Windows Update icon showing in the Taskbar, but when I try to open that, it shows Windows Update has never been run (and can’t run now, of course, because networking is munged up). Computer Properties says SP2 is installed. Any suggestions?

      ” goto control panel then user account then change my environment variables check for :- temp %userprofile%appDatalocatTemp if its showing two line then delete one line than its working

    Viewing 10 reply threads
    Reply To: How to fix “Error 5: Access is denied”

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: