mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2024-12-27 09:29:18 +01:00
Update _index.en.md
This commit is contained in:
parent
94901dd874
commit
f8c9268f1c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user