rustdesk-server-pro icon indicating copy to clipboard operation
rustdesk-server-pro copied to clipboard

RustDesk Pro - installation automation

Open DMSnz opened this issue 2 years ago • 14 comments

As the title suggests, looking for best ideas to include some form of installation automation for the masses. NOTE: for the Pro version.

I would propose without having much experience; Parameter based install options that can be thrown out via PowerShell or GPO etc. Parameters should/could be stored in a central config file that can be queried at install EDIT: To allow a variable based username to show up in the Device List via Web Console would be great (so at install, can specify %username% for a Windows variable at least)

Other thoughts / better ideas welcomed please, but a bare bones option to those without any package installers like Puppet, Chocolatey and so on would be beneficial.

DMSnz avatar Jul 17 '23 02:07 DMSnz

👍 I like your proposal.

rustdesk avatar Jul 17 '23 02:07 rustdesk

@dinger1986 @it-boerner

rustdesk avatar Jul 17 '23 02:07 rustdesk

Parameter based install options that can be thrown out via PowerShell or GPO etc. Parameters should/could be stored in a central config file that can be queried at install EDIT: To allow a variable based username to show up in the Device List via Web Console would be great (so at install, can specify %username% for a Windows variable at least)

Could you let me know how do you run the PowerShell? A snapshot will help a lot.

rustdesk avatar Jul 17 '23 04:07 rustdesk

Parameter based install options that can be thrown out via PowerShell or GPO etc. Parameters should/could be stored in a central config file that can be queried at install EDIT: To allow a variable based username to show up in the Device List via Web Console would be great (so at install, can specify %username% for a Windows variable at least)

Could you let me know how do you run the PowerShell? A snapshot will help a lot.

I have maybe jumped the gun on this... In reality to install exe via a PowerShell script (remotely on various machines) would at the very least need local administrator rights if running said script via GPO, if running directly remotely you need services running to allow the remote connection which are not running out of the box. I believe GPO based "Software deployment" installs only work with MSI files not EXE files

There are various workarounds for these issues but mostly hack jobs and not therefore a valid option for most. Back to thinking about this...

DMSnz avatar Jul 17 '23 07:07 DMSnz

I have added alot of this in the PR https://github.com/rustdesk/doc.rustdesk.com/pull/232

I did a write up for Tactical RMM https://docs.tacticalrmm.com/3rdparty_rustdesk/ and will be including alot of this info in the FAQs

Also we reference it here https://github.com/rustdesk/rustdesk-server-pro/issues/16

dinger1986 avatar Jul 17 '23 08:07 dinger1986

this should help as well https://github.com/rustdesk/rustdesk/commit/9ac3128309fa9812016fd7c3ce43e40d3c24003f#r122060835 if we can import the config via the encrypted string which is available on the web console of the api then deployment is very simple going forward.

Currently the full deployment powershell script is here https://rustdesk.com/docs/en/self-host/pro/faq/#can-i-deploy-rustdesk-using-powershell I used it to deploy over 400 agents last night

Powershell can be used effectively with GPO and intune etc

dinger1986 avatar Jul 19 '23 22:07 dinger1986

Dead keen to try this But would like to wait/see how we can integrate username/device name in to the console before 200 odd machines report back to the console with ID number only.

DMSnz avatar Jul 19 '23 22:07 DMSnz

Thanks for your great work incorporating the deployment commands for RustDesk via PowerShell

it-boerner avatar Jul 20 '23 05:07 it-boerner

Dead keen to try this But would like to wait/see how we can integrate username/device name in to the console before 200 odd machines report back to the console with ID number only.

Yes, working on this.

rustdesk avatar Jul 20 '23 05:07 rustdesk

Dead keen to try this But would like to wait/see how we can integrate username/device name in to the console before 200 odd machines report back to the console with ID number only.

Yes, working on this.

All good no pressure, appreciating the fast paced dev

DMSnz avatar Jul 20 '23 05:07 DMSnz

Only thing I'd add to this request is that the installation scripts automatically adds the endpoint to the address book.

Other than that everything seems to be working well now. Just about to press the button to deploy to 150 endpoints.

@dinger1986 - Does TRMM scripting run as SYSTEM? Looking to move from current RMM provider.

ghost avatar Jul 22 '23 09:07 ghost

Yes would need to get a flag for that on the exe first but once done the script would work.

Yeah TRMM can run as system or as user works really well with RustDesk Server Pro

dinger1986 avatar Jul 22 '23 09:07 dinger1986

Only thing I'd add to this request is that the installation scripts automatically adds the endpoint to the address book.

We will think about this, or some other alternative. Please create another feature request for this.

rustdesk avatar Jul 22 '23 09:07 rustdesk

this should help as well rustdesk/rustdesk@9ac3128#r122060835 if we can import the config via the encrypted string which is available on the web console of the api then deployment is very simple going forward.

This does indeed work

dinger1986 avatar Jul 24 '23 21:07 dinger1986