mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-20 09:47:45 +02:00
Update _index.en.md
This commit is contained in:
parent
f867a84943
commit
88a59a18c2
@ -19,7 +19,7 @@ $ErrorActionPreference= 'silentlycontinue'
|
||||
$rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
|
||||
|
||||
# Get your config string from your Web portal and Fill Below
|
||||
rustdesk_cfg="configstring"
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### Please Do Not Edit Below This Line #########################################
|
||||
|
||||
@ -54,6 +54,9 @@ $arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
|
||||
|
||||
if ($arrService -eq $null)
|
||||
{
|
||||
Write-Output "Installing service"
|
||||
cd $env:ProgramFiles\RustDesk
|
||||
Start-Process .\rustdesk.exe --install-service -wait -Verbose
|
||||
Start-Sleep -seconds 20
|
||||
}
|
||||
|
||||
@ -65,7 +68,7 @@ while ($arrService.Status -ne 'Running')
|
||||
}
|
||||
|
||||
cd $env:ProgramFiles\RustDesk\
|
||||
$rustdesk_id = (.\RustDesk.exe --get-id | out-host)
|
||||
.\RustDesk.exe --get-id | Write-Output -OutVariable rustdesk_id
|
||||
|
||||
.\RustDesk.exe --config $rustdesk_cfg
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user