Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

Code Error 80070005 - Access Denied

Troubleshooting Code 80070005  - Access Denied

Introduction to Code 80070005

My gut feeling is that 8070005 is a catch-all error code for any number of database / DCOM connection problems.  If I had to stick my neck out, I would say that it's a permissions problem.  Thanks to readers sending in information on this error code, we are slowly building up a library of problems, and even more important, solutions. 

General Diagnosis of Error 80070005

What I can offer is general principles, such as, pay close attention to the line number.  You will soon discover that Line: number gives the best clues for solving the problem.

Following the line number, I would turn my attention to permissions, are you logged on as an administrator? What is the script trying to achieve?  Does the file or folder referenced need admin rights?

Next, move check out the Source: = service.  Does this mean anything to you?  Research the name of the service using built-in help.  See more about diagnosing VBScript problems.

Local Security and Policies and DCOM - Kindly researched by Kevin Kirk

Local Security Policies

1. Start -> Control Panel -> Administrative Tools -> Local Security Policy
2. Navigate to Security\Local Policies\Security Options
a. Network Access: Let everyone permissions apply to anonymous users - Set to Enabled
c. DCOM: Machine Access Restrictions - Add Anonymous, Everyone, Interactive, Network, System with full rights options set.
d. Network Access: Let everyone permissions apply to anonymous users - Set to Enabled
e. Network Access: Sharing security model for local accounts - Set to Classic

The "Sharing Security model" is the real offending item I believe, and setting the above should fix the problem. If not then I went as far as setting the following in DCOMCNFG.

DCOM Configuration

1. Click Start -> Run
2. Enter DCOMCNFG and press OK. This will open the DCOMCNFG window.
3. Browse down the tree to Console Root -> Component Services -> Computers -> My Computer
4. Right click on "My Computer" and select properties
5. Select the "Default Properties" tab
  a. Enable Distributed COM on this computer - Option is checked
b. Default Authentication Level - Set to Connect
c. Default Impersonation Level - Set to Identify
6. Select the "COM Security" tab
7. Click on Access Permissions ' Edit Default
a. Add "Anonymous", "Everyone", "Interactive", "Network", "System" with Local and Remote access permissions set.
8. Click on Launch and Activation Permissions ' Edit Default
a. Add "Anonymous", "Everyone", "Interactive", "Network", "System" with Local and Remote access permissions set.
9. Click on OK
10. Close the DCOMCNFG window

This was done with some trial and error on four identical HP Workstations running small vbs programs. Once one was working, I just had to figure out why the others weren't.  Guy says this is

DCOM Scenario for Error 80070005 sent in by Norbert

A script which scans for WMI data from machines in the network.  If something goes wrong there's an entry in the log file like this:

2004-09-03 13.30 ARW167: ERROR 80070005 (WMIConnect)

Cause

Lots of error 80070005 messages occur when DCOM settings on the remote machine weren't correct.

Solution to error 80070005 sent in by Norbert

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole]
"EnableDCOM"="Y"
"EnableRemoteConnect"="Y"
"LegacyAuthenticationLevel"=dword:1


IIS Website User Name error 80070005error 80070005

Send by Ivailo Gardev

We had similar error 80070005 problem in our team. The problem was with IIS server in XP Professional environment. FoxPro 9 (foxisapi) was used for dynamic creation of the web pages.

It is strange, but the problem was resolved by changing the value in “User Name” field in the Authentication Method popup window (Control Panel > IIS > Default Web Site > Properties > page Directory Security > Anonymous Access – Edit button). The value was changed to ‘EVERYONE’ and the error has disappeared. However, "everyone" is not the only possible word. Seems that all words, which are different than the names of the existing IWAM_* and IUSR_* users are OK.

N.B click on Authentication Methods screen shot for larger picture.

IIS Website problem - Evan Jones writes:

My error 80070005 was down to a setting within IIS for my website. The default application is set to "default application pool", whereas I have changed this is "Exchange Application" and it now works fine.


Error 80070005 permission problem with SWbemLocator

Screen shot sent in by Maz

Code error 80070005

Error 80070005 Scenario with Exchange and ADUC

In this instance you are managing Users with Active Directory Users and Computers.  Most likely, you try and update a subset of attributes on user objects.  In particular, this problem occurs when you try to update the values for users who have mailboxes enabled.

ASP Database permission error 80070005 problem

Symptoms  'ASP 0178 : 80070005'.

When you browse to an Active Server Page (ASP) database results page, you receive an error message saying:

Server object error 'ASP 0178 : 80070005'

Server.CreateObject Access Error

/_fpclass/fpdbrgn1.inc, line 83

The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

This error can be caused by incorrect NTFS permissions for your "%ProgramFiles%\Common Files\System" folder.

 

Solution: To solve this problem change the NTFS permissions on the "%ProgramFiles%\Common Files\System" folder.  Add Everyone to the existing permissions, give at least Read permissions to Everyone, remember to apply these new settings to all files and subfolders.

 

Another Solution: Try logging on as administrator.

 


Therefore, if you have a screen shot and a code then send it to me,

a) I will do my my best to solve it.

b) I will add it here with a credit to you.

To email me for advice, click here:

Error:Access is denied

code: 80070005

source:SWbemServiceEX

Solarwinds IpMonitorTry a different solution, download SolarWinds ipMonitor

Here is my thinking, ipMonitor will give you valuable data about your network and servers.  This extra information just may unlock the solution to your error code.  One more thing, sometimes when troubleshooting you go around in circles; therefore if you try a different, but related approach, you may just crack the problem.  Free Download of SolarWinds ipMonitor

Computer Training Software - Recommended Training VideosGuy Thomas recommends Computer Training Software

Their topics and material are ideal for getting you started with VBScript.  The videos are easy to follow and you can control the pace.  Try their free demo material and then see if you want to buy the full package. See more about VB Script Training CD.


Do you need extra help?

For interpreting the WSH messages check Diagnose 800 errors.

For general advice try my 7 Troubleshooting techniques

Give something back?

Would you like to help others?  If you have a good example of this error, then please email me, I will publish it with a credit to you:

 *


Google

Webcomputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Here is a solution to monitor, manage and archive thousands of events that are generated by devices across your entire network.  Get your free evaluation copy of GFI EventsManager.

 

Home Copyright © 1999-2008 Computer Performance LTD All rights reserved

Please report a broken link, or an error.