Update _index.en.md

This commit is contained in:
dinger1986 2023-08-24 14:32:22 +01:00 committed by GitHub
parent 94901dd874
commit f8c9268f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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