Update _index.en.md

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

View File

@ -7,15 +7,22 @@ You can deploy using a number of methods, some are covered in [Client](/docs/en/
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.
The permanent password can be changed from random to one you prefer using by changing the content inside () after $rustdesk_pw to your preferred password.
### Powershell
```ps
$ErrorActionPreference= 'silentlycontinue'
$rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version)
$rdaddr =
$rdapi =
$rdaddr =
$rdapi =
$rdkey =
$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
####################################Please Do Not Edit Below This Line##########################################
$rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version)
if($rdver -eq "1.2.2")
{
@ -69,14 +76,12 @@ 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