Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
My new way of scanning the DOMAIN
mbonal
#1 Posted : Wednesday, March 25, 2009 2:43:44 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 26
Location: S
This code will enumerate the domain and scan every PC on it, regardless of the domains you have.

\\servername\share\psexec.exe \\* -c -u "domain\username" -p "password" \\server\share\lsclient "name of server where lansweeper resides"

THis is how I am scanning across the domain now and iw works great!
apineda
#2 Posted : Tuesday, March 31, 2009 6:23:17 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 5
sounds great, please could you explain in more detail how to use your command...
Thx! :)
Cobra7
#3 Posted : Tuesday, March 31, 2009 10:24:46 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 147
Location: Omaha
Great idea, but my company is a bit too big for this with off sites and everything.

As far as the command just fill in the information and put it in a batch file and double click it.
hawk
#4 Posted : Thursday, April 02, 2009 7:26:39 PM
Rank: Freeware user

Groups: Member
Posts: 6
Location: Brazil
mbonal wrote:
This code will enumerate the domain and scan every PC on it, regardless of the domains you have.

\\servername\share\psexec.exe \\* -c -u "domain\username" -p "password" \\server\share\lsclient "name of server where lansweeper resides"

THis is how I am scanning across the domain now and iw works great!


Brilliant! Very clever....
kaarde
#5 Posted : Friday, May 15, 2009 3:13:04 PM

Rank: Premium user

Groups: Premium Users, Member
Posts: 23
cool!! I was using a text file with all the computers in it, instead of \\* i was using \\@text.txt

But still i have a question, why do you use the -c switch?? you give the unc path fior the lsclient.exe file in the command so there is no need to copy it since it'll be executed from that share....this way you'll be running this a little faster :)

\\servername\share\psexec.exe \\* -u "domain\username" -p "password" \\server\share\lsclient.exe "name of server where lansweeper resides"



cosminbro
#6 Posted : Monday, May 18, 2009 1:36:38 PM
Rank: Freeware user

Groups: Member
Posts: 3
Very clever !

So, we can add a Custom Action with the following code and it works like a charm:

psexec.exe \\{computer} -u "domain\username" -p password \\server\share\lsclient.exe name of the computer where lansweeper server is running

Great Job !

Cosmin
taeratrin
#7 Posted : Monday, May 18, 2009 2:40:24 PM

Rank: Premium user

Groups: Premium Users
Posts: 214
Keep in mind that this method does not fill in the user information correctly. It will show whatever you put in after the -u as being the logged-in user.
kaarde
#8 Posted : Tuesday, May 19, 2009 8:15:45 PM

Rank: Premium user

Groups: Premium Users, Member
Posts: 23
taeratrin wrote:
Keep in mind that this method does not fill in the user information correctly. It will show whatever you put in after the -u as being the logged-in user.


Your right, but for an initial sweep or for the purpose of trying the program this is an exellent way to scan. It's perfect if you only need hardware and software and faster than the loggin script method. Besides that I use Lansweeper for machine and software not users (they just hate being treated like numbers Angel )
taeratrin
#9 Posted : Tuesday, May 19, 2009 9:22:11 PM

Rank: Premium user

Groups: Premium Users
Posts: 214
kaarde wrote:
taeratrin wrote:
Keep in mind that this method does not fill in the user information correctly. It will show whatever you put in after the -u as being the logged-in user.


Your right, but for an initial sweep or for the purpose of trying the program this is an exellent way to scan. It's perfect if you only need hardware and software and faster than the loggin script method. Besides that I use Lansweeper for machine and software not users (they just hate being treated like numbers Angel )


That's why I built that deployment tool. Does basically the same thing.

You mean you don't have problems with users sending in tickets that don't mention what computer they're on? We get that all of the time, and I got sick of wasting time asking them to send in the computer name. Half the time, you'd get no response at all. The other half, you'd get a response like 'My computer name is Optiplex 740'. I implemented Lansweeper to solve this problem, and so far it's been working out well.

I did do alot of research on how to make the deployment tool (and psexec) run the process as the local session user, but it turns out to be impossible.
cosminbro
#10 Posted : Tuesday, May 19, 2009 10:29:04 PM
Rank: Freeware user

Groups: Member
Posts: 3
taeratrin wrote:
Keep in mind that this method does not fill in the user information correctly. It will show whatever you put in after the -u as being the logged-in user.


Workaround: then we must use variables {username} and {userdomain} like this:

psexec.exe \\{computer} -u {userdomain}\{username} -p password \\server\share\lsclient.exe name of the computer where lansweeper server is running
taeratrin
#11 Posted : Tuesday, May 19, 2009 11:38:00 PM

Rank: Premium user

Groups: Premium Users
Posts: 214
cosminbro wrote:
taeratrin wrote:
Keep in mind that this method does not fill in the user information correctly. It will show whatever you put in after the -u as being the logged-in user.


Workaround: then we must use variables {username} and {userdomain} like this:

psexec.exe \\{computer} -u {userdomain}\{username} -p password \\server\share\lsclient.exe name of the computer where lansweeper server is running


So all of the users on your network have the same password?
cosminbro
#12 Posted : Wednesday, May 20, 2009 12:23:45 PM
Rank: Freeware user

Groups: Member
Posts: 3
taeratrin wrote:
cosminbro wrote:
taeratrin wrote:
Keep in mind that this method does not fill in the user information correctly. It will show whatever you put in after the -u as being the logged-in user.


Workaround: then we must use variables {username} and {userdomain} like this:

psexec.exe \\{computer} -u {userdomain}\{username} -p password \\server\share\lsclient.exe name of the computer where lansweeper server is running


So all of the users on your network have the same password?


No, sorry, i didn't observe .... I was at home ! Angel

So go buy premium ! Angel Angel
jagger
#13 Posted : Friday, July 10, 2009 4:37:10 PM
Rank: Freeware user

Groups: Member
Posts: 1
So I got the scprit running, but I get access is denied for every machine, any Ideas?
Cobra7
#14 Posted : Tuesday, July 14, 2009 5:11:38 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 147
Location: Omaha
You either didn't fill in your user name and password correctly or you are not an admin on those PC's.
Bulwinkle
#15 Posted : Thursday, January 21, 2010 8:34:40 PM


Rank: Premium user

Groups: Premium Users
Posts: 6
Location: Nashville, TN
Well I have it woking just fine I use a cmd window to verify that the {computer} registered with my Lansweeper server it goes somthing like this:

cmd.exe /k "psexec.exe \\{computer} \\server\share\lsclient.exe" name of the computer where lansweeper server is running or you could call the .bat listed below

the qoutes are needed due to the cmd window

this will Trigger a scan of the {computer} and give you confirmation that the proccess executed we use a more powerful server to handle the processing of the scan so our web server is not slowed up.

We created a .bat file that calls the LSClient.exe and directs it to the processing server.

this is what the contents of the bat file is realy simple - \\server\share\lsclient.exe XXX.XXX.XXX.XXX
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba