cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DavidL
Engaged Sweeper
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!
1 REPLY 1
Esben_D
Lansweeper Employee
Lansweeper Employee
For others looking to use this:

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.com/en-us/sysinternals/downloads/shellrunas