From f8c9268f1cda231ccca34e782bf464890a468b6c Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 14:32:22 +0100 Subject: [PATCH] Update _index.en.md --- content/client/Client Deployment/_index.en.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/content/client/Client Deployment/_index.en.md b/content/client/Client Deployment/_index.en.md index f44d563a..0f205fc6 100644 --- a/content/client/Client Deployment/_index.en.md +++ b/content/client/Client Deployment/_index.en.md @@ -5,7 +5,7 @@ weight: 6 You can deploy using a number of methods, some are covered in [Client](/docs/en/client/#configuring-rustdesk) -Alternatively you can use mass deployment scripts. +Alternatively you can use mass deployment scripts with your RMM, intune etc, the ID and password is output by the script, you should collect this, or split this off into different scripts to collect the ID and password. ### Powershell @@ -59,6 +59,24 @@ Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\con net start rustdesk +cd $env:ProgramFiles\RustDesk\ +$rustdesk_id = (.\RustDesk.exe --get-id | out-host) + +net stop rustdesk > null +$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue +if($ProcessActive -ne $null) +{ +stop-process -ProcessName rustdesk -Force +} + +$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) +Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait + +Write-Output $rustdesk_id +Write-Output $rustdesk_pw + +net start rustdesk > null + ``` ### Mac OS Bash