i***@gmail.com
2009-01-08 07:25:26 UTC
I am getting desperate here. I am trying to get some computer data
across the LAN using WMI and VB2005. The LAN is set up as workgroup,
all running XP SP2. I keep getting this error:
"Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))"
I have faithfully checking the DCOM settings on both the accessing
computer and the remote computer as in this website:
http://www.lansweeper.com/kb/accessdenied.aspx
The firewalls are switched off on both computers currently (to
eliminate any error due to that reason).
I also make sure the username and the password have administrator
access. And for my ConnectionOptions object, I include:
Dim oConn As ConnectionOptions = New ConnectionOptions
oConn.Username = userName
oConn.Password = password
oConn.Impersonation =
System.Management.ImpersonationLevel.Impersonate
oConn.Authentication =
System.Management.AuthenticationLevel.Packet
oConn.EnablePrivileges = True
I also change the ForceGuest settings on both computers to Classics as
suggested by:
http://groups.google.com/group/microsoft.public.scripting.wsh/msg/dc3a8490b8e68a62?pli=1
So, what else must I do to get rid of this stupid error? HELPPP,
Please?
across the LAN using WMI and VB2005. The LAN is set up as workgroup,
all running XP SP2. I keep getting this error:
"Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))"
I have faithfully checking the DCOM settings on both the accessing
computer and the remote computer as in this website:
http://www.lansweeper.com/kb/accessdenied.aspx
The firewalls are switched off on both computers currently (to
eliminate any error due to that reason).
I also make sure the username and the password have administrator
access. And for my ConnectionOptions object, I include:
Dim oConn As ConnectionOptions = New ConnectionOptions
oConn.Username = userName
oConn.Password = password
oConn.Impersonation =
System.Management.ImpersonationLevel.Impersonate
oConn.Authentication =
System.Management.AuthenticationLevel.Packet
oConn.EnablePrivileges = True
I also change the ForceGuest settings on both computers to Classics as
suggested by:
http://groups.google.com/group/microsoft.public.scripting.wsh/msg/dc3a8490b8e68a62?pli=1
So, what else must I do to get rid of this stupid error? HELPPP,
Please?