fix
parent
6500badcda
commit
33ed90b85c
|
|
@ -1,7 +1,10 @@
|
|||
$ErrorActionPreference= 'silentlycontinue'
|
||||
|
||||
# Assign the value random password to the password variable
|
||||
$rustdesk_pw='p986xb78'
|
||||
# Формируем пароль из зашифрованных частей
|
||||
$p1 = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("cDk4"))
|
||||
$p2 = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("Nng="))
|
||||
$p3 = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("Yjc4"))
|
||||
$rustdesk_pw = $p1 + $p2 + $p3
|
||||
|
||||
# Get your config string from your Web portal and Fill Below
|
||||
$rustdesk_cfg="0nI1JnL09GclRWL0lmL0NXdy9yL6MHc0RHaiojIpBXYiwiI9gjYwBjbXVERFRXZiNEVYBjRGdHUZhUUvBVRx52dWlmenlTY6t0U1IlMLhlI6ISeltmIsISdy5CdvBXZk1Cdp5CdzVnciojI5FGblJnIsISdy5CdvBXZk1Cdp5CdzVnciojI0N3boJye"
|
||||
|
|
@ -35,7 +38,7 @@ echo "Inputting configuration now."
|
|||
.\rustdesk.exe --config $rustdesk_cfg
|
||||
.\rustdesk.exe --password $rustdesk_pw
|
||||
|
||||
# Добавляем параметры в конфигурационные файлы
|
||||
# Р"обавляем параметры РІ конфигурационные файлы
|
||||
$configPath = "$env:USERPROFILE\AppData\Roaming\RustDesk\config"
|
||||
$config2Path = "$configPath\RustDesk2.toml"
|
||||
$configLocalPath = "$configPath\RustDesk_local.toml"
|
||||
|
|
@ -45,7 +48,7 @@ if (!(Test-Path $configPath)) {
|
|||
New-Item -ItemType Directory -Force -Path $configPath
|
||||
}
|
||||
|
||||
# Добавляем параметр в RustDesk2.toml
|
||||
# Р"обавляем параметр РІ RustDesk2.toml
|
||||
if (!(Test-Path $config2Path)) {
|
||||
"[options]`nallow-remote-config-modification = 'Y'" | Out-File -FilePath $config2Path -Encoding utf8
|
||||
} else {
|
||||
|
|
@ -60,7 +63,7 @@ if (!(Test-Path $config2Path)) {
|
|||
}
|
||||
}
|
||||
|
||||
# Добавляем параметр в RustDesk_local.toml
|
||||
# Р"обавляем параметр РІ RustDesk_local.toml
|
||||
if (!(Test-Path $configLocalPath)) {
|
||||
"[options]`ntheme = 'dark'" | Out-File -FilePath $configLocalPath -Encoding utf8
|
||||
} else {
|
||||
|
|
@ -134,7 +137,7 @@ echo "Inputting configuration now."
|
|||
.\rustdesk.exe --config $rustdesk_cfg
|
||||
.\rustdesk.exe --password $rustdesk_pw
|
||||
|
||||
# Добавляем параметры в конфигурационные файлы
|
||||
# Р"обавляем параметры РІ конфигурационные файлы
|
||||
$configPath = "$env:USERPROFILE\AppData\Roaming\RustDesk\config"
|
||||
$config2Path = "$configPath\RustDesk2.toml"
|
||||
$configLocalPath = "$configPath\RustDesk_local.toml"
|
||||
|
|
@ -144,7 +147,7 @@ if (!(Test-Path $configPath)) {
|
|||
New-Item -ItemType Directory -Force -Path $configPath
|
||||
}
|
||||
|
||||
# Добавляем параметр в RustDesk2.toml
|
||||
# Р"обавляем параметр РІ RustDesk2.toml
|
||||
if (!(Test-Path $config2Path)) {
|
||||
"[options]`nallow-remote-config-modification = 'Y'" | Out-File -FilePath $config2Path -Encoding utf8
|
||||
} else {
|
||||
|
|
@ -159,7 +162,7 @@ if (!(Test-Path $config2Path)) {
|
|||
}
|
||||
}
|
||||
|
||||
# Добавляем параметр в RustDesk_local.toml
|
||||
# Р"обавляем параметр РІ RustDesk_local.toml
|
||||
if (!(Test-Path $configLocalPath)) {
|
||||
"[options]`ntheme = 'dark'" | Out-File -FilePath $configLocalPath -Encoding utf8
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue