Notification

Icon
Error

Connect to computer using Spashtop Business

Posted: Friday, January 29, 2021 5:00:29 PM(UTC)
TapeDeck

TapeDeck

Member Original PosterPosts: 2
1
Like
We're still in the trial phase of Lansweeper, but I wanted to see if it was possible to integrate Splashtop into the custom actions. Splashtop has limited documentation on how to connect via a command/shortcut, but I was able to adapt it to work in Lansweeper. NOTE that this custom action works only for assets that have Splashtop Streamer installed, and the computer you're using to access LanSweeper is Windows and has the Splashtop Business client installed.

It turns out that the "account" part of the URL isn't needed if your Splashtop client is already logged in, I suspect it would be useful if you have multiple Splashtop accounts signed into a client - for example, I have my Work Splashtop acccount, and my personal one - and I can switch between them in the File menu. If you don't provide the Account parameter, I suspect it just assumes that the computer you're connecting to is in the account you're logged into.

Now, onto the custom action itself:

Quote:
powershell.exe -noprofile -windowstyle hidden "$mac = '{mac}' -replace ':', ''; start-process $('st-business://com.splashtop.business?mac=' + $mac)"


The trickiest part of this was making the MAC Address that Lansweeper gives you work with what Splashtop expects (no colons). I ended up using a couple lines of Powershell to manipulate the string and then call the URL. MAC also appears to be the only valid parameter besides Account, I tried to brute force some other way to use the hostname or asset tag or something - no dice.

I figure this could probably be re-written to work in MacOS or Linux terminals using their own string manipulation features. If anyone has any ideas on how to make this cross-OS compatible, I'm all ears!

Active Discussions

Lansweeper History of relationship between pc and monitor
by  hfaddy  
Go to last post Go to first unread
Last post: Yesterday at 1:44:38 PM(UTC)
Lansweeper New Hire Login Request Report
by  Scott Davis   Go to last post Go to first unread
Last post: 9/16/2021 7:16:46 PM(UTC)
Lansweeper SCCM end of life
by  Esben.D  
Go to last post Go to first unread
Last post: 9/16/2021 2:56:23 PM(UTC)
Lansweeper Microsoft Patch Tuesday – September 2021
by  Esben.D  
Go to last post Go to first unread
Last post: 9/14/2021 8:27:06 PM(UTC)
Lansweeper Apple “FORCEDENTRY” Zero-Day Vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: 9/14/2021 12:07:54 PM(UTC)
Lansweeper ALL laptops HP 340S G7 Notebook PC and Bios version
by  Carlos Montes  
Go to last post Go to first unread
Last post: 9/13/2021 3:17:19 PM(UTC)