Notification

Icon
Error

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Posted: Friday, July 24, 2009 5:46:05 AM(UTC)
chloe

chloe

Member Posts: 4
0
Like
Hi I am new in LanSweeper, Anyone can help? I have the problem in scan pc.

I have RED in color from the Computer tab in LanSweeper Console.
once I run the LSclient.exe in some of the pc error below will show in the errorlog.
only some of the pc in AD will have this problem.

====================================================
23/07/2009 10:30:16 AM : MYPC
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
at Lansweeperservice.sweeperthread.LSADusersearch(clsComputer mycomputer, clsThreadinfo Threadinfo, SqlConnection& sqlcon)

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
at Lansweeperservice.sweeperthread.LSADusersearch(clsComputer mycomputer, clsThreadinfo Threadinfo, SqlConnection& sqlcon)
====================================================
Lansweeper
#-29Lansweeper Member Administration  
posted: 7/25/2009 12:00:53 AM(UTC)
This means that the account running the scan doens't have right to look up the username of the pc in active directory (maybe you made special changes for some users)
Which is your version of lansweeperservice.exe?
chloe
#-28chloe Member  
posted: 7/27/2009 5:40:22 AM(UTC)
Thanks for reply,
I using version 3.5.1

I write a bat file as below to ask some of my user to run it. user will access the bat file from network and run it with their own user profile.

"\\netpc\Lan Sweeper\lsclient.exe" 192.168.2.168


Is that a need for user to have local administrator? or domain administrator?
chloe
#-27chloe Member  
posted: 7/27/2009 5:42:27 AM(UTC)
From user side, aftter they run the bat file the, the messange below will shown.
=================
Lansweeper client

Connecting...
Success
=================
Lansweeper
#-26Lansweeper Member Administration  
posted: 7/27/2009 8:49:24 AM(UTC)
chloe wrote:

Is that a need for user to have local administrator? or domain administrator?

The user don't need any special rights.
everything you do is ok.

You only need to check if the account you used to configure lansweeperservice.exe has enough rights to read these user properties in AD
chloe
#-25chloe Member  
posted: 7/27/2009 9:41:53 AM(UTC)
How do I check the account used to configure lansweeperservice.exe got enough right?
because I use local administrator to configure the account, but now I use Domain Admins Account to login to the LanSweeper PC

for clear view,
I have AD in the network, and I install the Lansweeper into a normal PC (for testing) with local administrator to configure it.
and later on, i notice it may need domain administrator right in Lansweeper pc inorder to get the information from LSclient.exe. so now i login the Lansweeper Server pc by using the Domain Admin account.

only some of the user have this problem, not all.

From the Web base, the error for that particuliar pc shown as below:
Wmierror The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) ORIX019 (192.168.2.45) 27/07/2009 10:55:41 AM






















Lansweeper
#-24Lansweeper Member Administration  
posted: 7/27/2009 9:46:08 AM(UTC)
Quote:
How do I check the account used to configure lansweeperservice.exe got enough right?

Open services.msc on the lansweeper server, click on the service and check the username used.

Quote:
I have AD in the network, and I install the Lansweeper into a normal PC (for testing) with local administrator to configure it.

Make sure the service runs under the domain administrator account instead of the local administrator.

Quote:

From the Web base, the error for that particuliar pc shown as below:
Wmierror The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) ORIX019 (192.168.2.45) 27/07/2009 10:55:41 AM


Please see this page : http://www.lansweeper.com/kb/notfound.aspx

Top Rated

1 Lansweeper Lansweeper 5.2 (recent update)
by  MikeInLa  
Go to last post Go to first unread
Last post: 11/26/2014 9:57:29 AM(UTC)
2 Lansweeper Post here about your lansweeper setup.
by  Lansweeper  
Go to last post Go to first unread
Last post: 1/28/2015 8:38:33 PM(UTC)
3 Lansweeper Approve software only for certain PCs or Users
by  sarmo  
Go to last post Go to first unread
Last post: 11/13/2014 4:09:33 PM(UTC)
5 Lansweeper Deployment monitor
by  DaveinJP  
Go to last post Go to first unread
Last post: 1/17/2015 12:27:22 PM(UTC)
6 Lansweeper Deploy package - pre-defined "run mode" by package
by  servicedesk  
Go to last post Go to first unread
Last post: 1/7/2015 1:58:53 PM(UTC)
7 Lansweeper Add ability to adjust asset state visibility
by  WING987  
Go to last post Go to first unread
Last post: 1/9/2015 10:51:34 AM(UTC)
8 Lansweeper Exclude Specific Asset Groups from Reports
by  WhatTheFrenchToast  
Go to last post Go to first unread
Last post: 1/9/2015 11:00:24 PM(UTC)

Active Discussions

Lansweeper Ownership History
by  Susan.A   Go to last post Go to first unread
Last post: Yesterday at 2:10:24 AM(UTC)
Lansweeper Mysterious new duplicate entries
by  Susan.A  
Go to last post Go to first unread
Last post: Yesterday at 12:39:45 AM(UTC)
Lansweeper Chassis report to include non-scanned PCs
by  Susan.A   Go to last post Go to first unread
Last post: 1/30/2015 11:45:39 PM(UTC)
Lansweeper IE8 deployment fails
by  HammettMike  
Go to last post Go to first unread
Last post: 1/30/2015 9:39:46 PM(UTC)
Lansweeper api / automation support
by  chrishps   Go to last post Go to first unread
Last post: 1/30/2015 7:08:41 PM(UTC)
Lansweeper PC with more than 5 programs installed (deny and neutral)
by  Daniel.B  
Go to last post Go to first unread
Last post: 1/30/2015 3:17:59 PM(UTC)
Lansweeper Query for OS and Office
by  Daniel.B   Go to last post Go to first unread
Last post: 1/30/2015 12:13:40 PM(UTC)