Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
itadmin2
Engaged Sweeper
Can anybody confirm that the following startup.vbs placed in a logon script thru GPO is correct?
--------------------------------------------------------------------------------------
Set WshShell = CreateObject("WScript.Shell")

WshShell.run "ONESOURCESBS\netlogon\lsclient.exe FILESERVER",0
---------------------------------------------------------------------------------------
where ONESOURCESBS is the DC
&
FILESERVER is the machine name where the lansweeper service is installed.
Also I have attached the service conf file as well.
---------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="MM_CONNECTION_STRING_Lansweeper" value="Persist Security Info=False;Data Source=1SOURCEERP;Initial Catalog=lansweeperdb;User ID=lansweeperuser;Password=XXXXXXXXXXXXXXXX" />
<add key="ConcurrentThreads" value="20" />
<add key="ListenPort" value="9524" />
<add key="Activescanning" value="1" />
</appSettings>
</configuration>

In this point the web console accessed through the http://localhost:8530/lansweeper32/
stills gives me the following error

System.Data.SqlClient.SqlException: Login failed for user 'lansweeperuser'.
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at DreamweaverCtrls.DataSet.DoInit()
--------------------------------------------------------------------------------
System.Data.SqlClient.SqlException: Login failed for user 'lansweeperuser'.
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at DreamweaverCtrls.DataSet.DoInit()

----------------------------------------------------------------------------------------------------------------------------------------
I still get the lsclient machinename check to fail on every computer?

C:\>\\onesourcesbs\netlogon\lsclient pce0006
Lansweeper client
-----------------
Connecting...
Failed
C:\>\\onesourcesbs\netlogon\lsclient fileserver
Lansweeper client
-----------------
Connecting...
Failed
C:\>\\onesourcesbs\netlogon\lsclient onesouresbs
Lansweeper client
-----------------
Connecting...
Failed
C:\>\\onesourcesbs\netlogon\lsclient 1sourceerp
Lansweeper client
-----------------
Connecting...
Failed
Is there some setting which I have omitted by accident?
1 REPLY 1
Hemoco
Lansweeper Alumni
Should be with 2 extra backslashes

WshShell.run "\\ONESOURCESBS\netlogon\lsclient.exe FILESERVER",0

Also check to make sure that the service is running on "fileserver"