Update _index.en.md

This commit is contained in:
dinger1986 2023-09-28 11:08:18 +01:00 committed by GitHub
parent f867a84943
commit 88a59a18c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,7 +54,10 @@ $arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue
if ($arrService -eq $null)
{
Start-Sleep -seconds 20
Write-Output "Installing service"
cd $env:ProgramFiles\RustDesk
Start-Process .\rustdesk.exe --install-service -wait -Verbose
Start-Sleep -seconds 20
}
while ($arrService.Status -ne 'Running')
@ -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