Notification

Icon
Error

ShellRunAs action in Lansweeper

Posted: Tuesday, June 25, 2019 11:58:07 AM(UTC)
DavidL

DavidL

Member Original PosterPosts: 1
0
Like
Hello

We have 3 domains with different password. In domain 1, we have lansweeper installed. in order to start service or something else on other computer in other domain I need administrator rights.
I want to use "ShellRunas" for that. can someone tell me what the script should look like? this is my example,

{actionpath}ShellRunas.exe /netonly {actionpath}services.msc {smartname} NP/

but it does not work. I get the message

Error lauching Programm

What am I doing wrong

Thanks!
Esben.D
#1Esben.D Member Administration Posts: 1,731  
posted: 6/28/2019 9:35:13 AM(UTC)
For others looking to use this:

Quote:
In general when testing and creating custom actions, we recommend starting with a command that works in CMD, which you then replace with the action-specific parameters such as {actionpath}, {ipaddress}, etc.

The below should work, if ShellRunAs.exe is in your actions folder and your action path is correct under Configuration\Asset Pages.

"{actionpath}ShellRunAs.exe" /netonly /accepteula services.msc /computer:{ipaddress}

If there is an issue though, try placing the command in CMD, replacing {actionpath} with your action path, and {ipaddress} with the IP address of one of your remote computers.


Useful link: https://docs.microsoft.c...als/downloads/shellrunas

Active Discussions

Lansweeper lansweeper 7
by  Esben.D   Go to last post Go to first unread
Last post: Yesterday at 4:27:34 PM(UTC)
Lansweeper dotNET framework 3.5 deployment
by  Ramezi  
Go to last post Go to first unread
Last post: Yesterday at 3:49:15 PM(UTC)
Lansweeper InTune Scanning not showing all devices
by  TBRIT   Go to last post Go to first unread
Last post: Yesterday at 3:05:17 PM(UTC)
Lansweeper lsAgent MSI installer
by  Sandro  
Go to last post Go to first unread
Last post: Yesterday at 10:52:39 AM(UTC)
Lansweeper Copying computer names that include a hyphen
by  rasldasl   Go to last post Go to first unread
Last post: 7/12/2019 4:08:44 PM(UTC)
Lansweeper Receiving tickets through the email
by  Esben.D  
Go to last post Go to first unread
Last post: 7/12/2019 10:10:10 AM(UTC)
Lansweeper Lansweeper PowerShell Modules
by  Esben.D   Go to last post Go to first unread
Last post: 7/12/2019 8:56:29 AM(UTC)
Lansweeper Automated Software Deployment for Windows Updates?
by  Esben.D  
Go to last post Go to first unread
Last post: 7/12/2019 8:42:19 AM(UTC)