Notification

Icon
Error

TeamViewer Remote App - Remote Control Action

Posted: Monday, December 21, 2015 10:22:56 PM(UTC)
paul.senick

paul.senick

Member Original PosterPosts: 2
1
Like
Any direction greatly appreciated.

1) In the "Configuration" "Asset Pages" "Asset Custom Fields" I set Custom01 to a Textbox and renamed it to TeamViewerID.

2) I created a batch file c:\tvr.bat with the following one line:
"C:\Program Files (x86)\TeamViewer\Version7\teamviewer.exe" --Password TestPassword -i {Custom01}

3) I then created an Asset Action called "TeamViewer Remote" that has one line:
cmd.exe /K {actionpath}tvr.bat

When I run the custom action from the Asset Pages everything translates okay except for the Custom01. Instead of it putting in the number that I manual put in by editing the asset it just puts in {Custom01} in the command line.

Question:
How do I call an "Asset Custom Field" from a command line or lansweeper action script?
Bert.D
#1Bert.D Member Lansweeper Developer Administration Posts: 103  
posted: 12/23/2015 4:43:36 PM(UTC)
Hi,

I'm afraid it's currently not possible to use the custom fields (eg. {Custom01}) as a parameter in custom actions.
paul.senick
#2paul.senick Member Original PosterPosts: 2  
posted: 12/23/2015 5:04:48 PM(UTC)
Bert, is it possible to use any of the other fields in the New Asset form? For example... "System SKU", "Order", "Barcode", etc. that I will be able to call from a custom action?

Thanks again.
Bert.D
#3Bert.D Member Lansweeper Developer Administration Posts: 103  
posted: 12/23/2015 5:33:20 PM(UTC)
Currently these are available:

{actionpath}, {smartname}, {assetname}, {dnsname},
{computer}, {domain}, {tag}, {username},
{userdomain}, {ipaddress}, {fqdn}, {scanserver}, {assetid}


remark: {tag} is the serial of the asset
Bart.E
#4Bart.E Member Administration Posts: 73  
posted: 3/9/2016 1:21:31 PM(UTC)
Below I added some additional information on the available parameters:

{actionpath} - Network share path defined unter Configuration\Asset Pages
{smartname} - Assetname or IP address, depending on Asset type
{assetname} - Assetname
{dnsname} - Name as resolved by DNS
{computer} - Computer name
{domain} - Computer domain name
{tag} - Serial number
{username} - Logged on user name
{userdomain} - Logged on user domain
{ipaddress} - Asset IP address
{fqdn} - Asset FQDN
{scanserver} - Scan server which last scanned the asset
MrCount
#5MrCount Member Posts: 14  
posted: 8/31/2016 2:42:41 PM(UTC)
Originally Posted by: Bert.D Go to Quoted Post
Hi,

I'm afraid it's currently not possible to use the custom fields (eg. {Custom01}) as a parameter in custom actions.


Hi,

is there any update?
It would be nice if the custom-fields could be used as a parameter in custom actions.
Maybe there is a 'workaround'?
Bart.E
#6Bart.E Member Administration Posts: 73  
posted: 9/27/2016 12:39:32 PM(UTC)
Originally Posted by: MrCount Go to Quoted Post
Originally Posted by: Bert.D Go to Quoted Post
Hi,

I'm afraid it's currently not possible to use the custom fields (eg. {Custom01}) as a parameter in custom actions.


Hi,

is there any update?
It would be nice if the custom-fields could be used as a parameter in custom actions.
Maybe there is a 'workaround'?


Unfortunately, there is no workaround available. The parameters you are able to use are hard-coded. The ability to use more parameters is on the wishlist but we cannot yet provide an estimated release date for this.
studerje
#7studerje Member Posts: 7  
posted: 10/9/2018 11:32:30 PM(UTC)
Is this still on the wish list? I found another need for using an custom field in an action.
JTempleton
#8JTempleton Member Posts: 40  
posted: 4/4/2019 10:29:17 PM(UTC)
Good day!

If everything is on the same network, you could use {ipaddress} to connect to the machines. You would have to modify teamviewer to accept incoming lan connection, but that should work.

Your batchfile should be:

"C:\Program Files (x86)\TeamViewer\Version7\teamviewer.exe" -p TestPassword -i {ipaddress}

Active Discussions

Action Powershell script for WOL on VLAN
by  psmail   Go to last post Go to first unread
Last post: 5/30/2019 12:00:43 AM(UTC)
Lansweeper Fonts
by  TKinnie  
Go to last post Go to first unread
Last post: 5/23/2019 4:00:40 PM(UTC)
Action Schedule Reboot using AT and psshutdown with time input
by  spatchE   Go to last post Go to first unread
Last post: 5/21/2019 5:35:46 PM(UTC)
Action Open users local Temp directory
by  studerje  
Go to last post Go to first unread
Last post: 5/14/2019 7:24:24 PM(UTC)
Lansweeper CMD- CFI MS Update remover 2
by  Rodney Stowell  
Go to last post Go to first unread
Last post: 4/18/2019 6:55:01 PM(UTC)
Action Skype User
by  cctech   Go to last post Go to first unread
Last post: 4/18/2019 4:14:54 PM(UTC)
Action Email user
by  cctech  
Go to last post Go to first unread
Last post: 4/18/2019 3:48:50 PM(UTC)