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

Tag as favorite
How to set up basic custom actions
Cobra7
#1 Posted : Friday, February 27, 2009 5:47:13 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 147
Location: Omaha
I had this post originally in the Premium forum, and as I went to update it I figured the freeware users could use this information as well so I'll just put it here.

Section 1: Preparing to use custom actions

Note for freeware users: Not all of your actions will work, you will need the premium version for everything.

If your useing Internet Explorer, you will need to change the security on the ActiveX section otherwise none of the custom actions will do anything.

To set up the correct IE security:
1. Click Tools and go to Internet Options.
2. Click on the Security Tab, highlight Local Intranet and click "Custom Level"
3. Scroll down to the ActiveX settings and set then to either Enable ot Prompt.

*See below for screen shots

If you are useing Firefox, you will need to get the IE toolbar from here: https://addons.mozilla.org/en-US/firefox/addon/1419

Also it should be noted that you can add your own custom actions if you think of any that you can use. Most people use AutoIt and VBS scripts to do various things.

Section 2: Setting up custom actions

Custom Actions can be a little confusing. Here is step by step.

1. Create a new share on the LS server, mine will be called LSTools.
2. Set up security on the share
3. Unzip the tools to this share (I added more, so I can not tell you how many come with it anymore)

At this point, you should be able to see all of the tools if you go to \\yourserver\LSTools
If you can not, need to start troubleshooting here, this is not an LS problem, it's something with your server.

Open the LS GUI program and log in. On the very top is the "Configuration" tab, when you click on that "Custom Actions" should be selected automatically, if it is not, then select it.

You should see the rows labeled "Description" "Action" "Icon" "Sort" "Enabled" "Confirm":

Description: This is what you will see in the LS Web page.
Action: This is the line we will be messing with, it tells your web browser where to go to find the tool and gives the tool it's parameters. I will get back to this.
Icon: This is the pretty icon next to the Description.
Sort: This arranges the actions, the lower the number the higher on the page it is.
Enabled: Make sure this is checked if you want to use it on the web page, if it is unchecked, that action will not work.
Confirm: This means that when you click on it in the web page, it will ask you if you are sure you want to run this tool.

Simple so far, right?

These examples will involve lstrigger.exe. What you do for this one should be repeated for all of them.
Now to get the tools to work, you need to change the action line. If I remember correctly the default is myserver. so the action line should be something like this:
Code:
lstrigger.exe myserver {computer} {domain}


Remember that share I told you to set up earlier, now we are going to use it. You will need to edit the action line. For my example, the server where Lansweeper is installed, and where the Lansweeper tools are located is "LSserver".

First thing you will need to do is tell the action line where the tool is, change the line to:
Code:
\\LSserver\lstools\lstrigger.exe myserver {computer} {domain}


All you did so far is tell the web browser where to find the tool, now we need to get the tool to work. You will need to change off of the "myserver" entries to the server where Lansweeper is installed.
Code:
\\LSserver\lstools\lstrigger.exe LSserver {computer} {domain}


If you have the Lansweeper tools installed on a server that is different from where the Lansweeper service is running, the names will not be the same, please change accordingly.

Now go to the LS web page and try the LStrigger on a computer. Give it a few moments then click Refresh on your web browser. On the lower right side you should see a lot of red squares that shows Lansweeper is updating the information.

When this works, update the rest of the tools. Test them to make sure they are working. Now your done.

Here is how it should look when complete:
Code:
Remote control: \\LSserver\lstools\lsremote {computer}
VNC:   \\LSserver\lstools\vncviewer.exe {computer}
Leave everything from Remote desktop to Traceroute alone, it should be set correctly already!
Code:
Take screenshot: \\LSserver\LStools\screengrab.exe {computer}
Reboot: \\LSserver\lstools\shutdown -r -m \\{computer}
Shutdown: \\LSserver\lstools\shutdown -s -m \\{computer}
Abort shutdown: \\LSserver\lstools\shutdown -a -m \\{computer}


This is where it gets tricky, leave the cmd.exe file alone, thats build into windows and you don't need to re-direct it. Pay attention on these lines.
Code:
Computer uptime: cmd.exe /K \\LSserver\lstools\uptime.exe {computer} /s
Remote processes: cmd.exe /K \\LSserver\lstools\pslist.exe \\{computer}
Show open files: cmd.exe /K \\LSserver\lstools\psfile.exe \\{computer}
Who's logged on: cmd.exe /K \\LSserver\lstools\psloggedon.exe \\{computer}


If you have any questions let me know.

Best of Luck!
Cobra7 attached the following image(s):
LS1.JPG
LS2.JPG
dodgal
#2 Posted : Friday, March 06, 2009 1:43:46 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 37
Location: Galway
Thanks for this great post! Very helpful for a "non techy" like me!

I have followed the steps above for lstrigger and now at least when I click Trigger Scan on the web browser I get prompted if I want to run a scan. The problem is that it doesn't appear to be scanning. I am running network monitor between the lansweeper server and the computer that I have triggered the scan on, and there is no traffic, neither is the browser updating as described above and last scanned date remains the same.

Am I missing something?
taeratrin
#3 Posted : Friday, March 06, 2009 2:14:22 PM

Rank: Premium user

Groups: Premium Users
Posts: 214
Have you tried going into the GUIConsole and setting the scan times to 0?
Cobra7
#4 Posted : Friday, March 06, 2009 5:14:34 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 147
Location: Omaha
taeratrin wrote:
Have you tried going into the GUIConsole and setting the scan times to 0?


lstrigger ignores scan times and does a full scan.

As far as dodgal, did you change your IE security to enable all ActiveX applications? When you click on ping (in LS) does it ping it?
Kheder
#5 Posted : Tuesday, March 17, 2009 9:08:35 PM
Rank: Freeware user

Groups: Member
Posts: 2
Location: Oslo
Meny thanks you are king
argie01
#6 Posted : Thursday, April 09, 2009 2:42:09 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 25
Hi,

thank you for your excellent post.
I've been trying to use actions but any of them works.
As you can see on that prinstscreen, IE7 give me an error in every actions I try to use on. And I've also tried with FF and the plugin you said, and nothing works.



The only actions that seems to work is Ipconfig: this action ask me for to run or not, but I don't get any screen with the results.

I modified the actions by default, as you said on the post, like this:

cmd.exe /K \\servcopias\LSTools\psfile.exe \\{computer} --> where "servcopias" is the name of the server where Lansweeper is running on

cmd.exe /K \\servcopias\LSTools\psloggedon.exe \\{computer}

cmd.exe /K \\servcopias\LSTools\pslist.exe \\{computer}

lstrigger.exe servcopias {computer} {domain}

Thank you for your help!!
Lansweeper
#7 Posted : Thursday, April 09, 2009 5:04:25 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,007
argie01 wrote:

I've been trying to use actions but any of them works.
As you can see on that prinstscreen, IE7 give me an error in every actions I try to use on. And I've also tried with FF and the plugin you said, and nothing works.


This error is caused by the internet explorer security settings not set correctly (see the documentation)
Cobra7
#8 Posted : Thursday, April 09, 2009 5:07:49 PM

Rank: Premium user

Groups: Member, Premium Users
Posts: 147
Location: Omaha
By the looks of things you have the command lines set up correctly.

The trouble will be either IE security not set up (set local intranet to low), turn on ActiveX settings, or security on the folder holding the tools.

Would you mind translating the error message? It might tell me a little more.

EDIT: Or what Lansweeper said, I'm a little too slow I guess :)
Lansweeper
#9 Posted : Thursday, April 09, 2009 5:39:32 PM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,007
Cobra7 wrote:
Would you mind translating the error message? It might tell me a little more.

Probably : automation server can't create object.
Users browsing this topic
Guest
Tag 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