add option to disable remote printer in rustdesk
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set SRCPATH=%~dp0
|
set SRCPATH=%~dp0
|
||||||
cd "%SRCPATH:~0,-1%"
|
cd "%SRCPATH:~0,-1%"
|
||||||
powershell.exe -ExecutionPolicy ByPass .\RustdeskInstall.ps1 -rdServer 'resup.bnvb-ingenieure.de' -rdKey "hQdyuLED8CrEXQvEx+enxc0+CgHW7oS2g76V9Sb6mCE=" -pwLength 16 -enableAudio 0 -toNextcloudPassword 1 -ncBaseUrl 'https://cloud.bnvb-ingenieure.de/apps/passwords' -ncUsername 's.tollkuehn@bnvb-ingenieure.de' -ncToken 'tLXwf-7mjTz-8DNoH-nKbMc-3BRGY' -ncFolder '5adcb5e7-1454-4d87-b18c-584c0c9b04de'
|
powershell.exe -ExecutionPolicy ByPass .\RustdeskInstall.ps1 -rdServer 'resup.bnvb-ingenieure.de' -rdKey "hQdyuLED8CrEXQvEx+enxc0+CgHW7oS2g76V9Sb6mCE=" -pwLength 16 -enableAudio 0 -enablePrinter 0 -toNextcloudPassword 1 -ncBaseUrl 'https://cloud.bnvb-ingenieure.de/apps/passwords' -ncUsername 's.tollkuehn@bnvb-ingenieure.de' -ncToken 'tLXwf-7mjTz-8DNoH-nKbMc-3BRGY' -ncFolder '5adcb5e7-1454-4d87-b18c-584c0c9b04de'
|
||||||
@@ -15,7 +15,10 @@
|
|||||||
Specifies the length of the password to connect to the RustDesk client
|
Specifies the length of the password to connect to the RustDesk client
|
||||||
|
|
||||||
.PARAMETER enableAudio
|
.PARAMETER enableAudio
|
||||||
EnableAudio in RustDesk client.
|
EnableAudio in RustDesk client. (https://rustdesk.com/docs/en/self-host/client-configuration/advanced-settings/#enable-audio)
|
||||||
|
|
||||||
|
.PARAMETER enablePrinter
|
||||||
|
EnablePrinter in RustDesk client (https://rustdesk.com/docs/en/self-host/client-configuration/advanced-settings/#enable-remote-printer)
|
||||||
|
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> .\RustdeskInstall.ps1 -rdServer "somehost.example.tld" -rdKey "KeyFromServer="
|
PS> .\RustdeskInstall.ps1 -rdServer "somehost.example.tld" -rdKey "KeyFromServer="
|
||||||
@@ -38,6 +41,7 @@ param(
|
|||||||
[string]$rdKey = $null,
|
[string]$rdKey = $null,
|
||||||
[int]$pwLength = 8,
|
[int]$pwLength = 8,
|
||||||
[bool]$enableAudio = $True,
|
[bool]$enableAudio = $True,
|
||||||
|
[bool]$enablePrinter = $True,
|
||||||
[bool]$toNextcloudPassword = $False,
|
[bool]$toNextcloudPassword = $False,
|
||||||
[string]$ncBaseUrl,
|
[string]$ncBaseUrl,
|
||||||
[string]$ncUsername,
|
[string]$ncUsername,
|
||||||
@@ -174,6 +178,10 @@ local-ip-addr = '$ipAddress'
|
|||||||
$rd2Toml += "`nenable-audio = 'N'"
|
$rd2Toml += "`nenable-audio = 'N'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!($enablePrinter)) {
|
||||||
|
$rd2Toml += "`nenable-remote-printer = 'N'"
|
||||||
|
}
|
||||||
|
|
||||||
#Workaround: Copy permanent password settings from:
|
#Workaround: Copy permanent password settings from:
|
||||||
# $env:Appdata\RustDesk\config\RustDesk.toml
|
# $env:Appdata\RustDesk\config\RustDesk.toml
|
||||||
# to:
|
# to:
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
set SRCPATH=%~dp0
|
set SRCPATH=%~dp0
|
||||||
cd "%SRCPATH:~0,-1%"
|
cd "%SRCPATH:~0,-1%"
|
||||||
powershell.exe -ExecutionPolicy ByPass .\Rustdesk_1.1.9_uninstall.ps1
|
powershell.exe -ExecutionPolicy ByPass .\Rustdesk_1.1.9_uninstall.ps1
|
||||||
powershell.exe -ExecutionPolicy ByPass .\RustdeskInstall.ps1 -rdServer 'resup.bnvb-ingenieure.de' -rdKey "hQdyuLED8CrEXQvEx+enxc0+CgHW7oS2g76V9Sb6mCE=" -pwLength 16 -enableAudio 0 -toNextcloudPassword 1 -ncBaseUrl 'https://cloud.bnvb-ingenieure.de/apps/passwords' -ncUsername 's.tollkuehn@bnvb-ingenieure.de' -ncToken 'tLXwf-7mjTz-8DNoH-nKbMc-3BRGY' -ncFolder 'b7e7b98f-9c4c-49b0-851b-dc4ecac7dd6e'
|
powershell.exe -ExecutionPolicy ByPass .\RustdeskInstall.ps1 -rdServer 'resup.bnvb-ingenieure.de' -rdKey "hQdyuLED8CrEXQvEx+enxc0+CgHW7oS2g76V9Sb6mCE=" -pwLength 16 -enableAudio 0 -enablePrinter 0 -toNextcloudPassword 1 -ncBaseUrl 'https://cloud.bnvb-ingenieure.de/apps/passwords' -ncUsername 's.tollkuehn@bnvb-ingenieure.de' -ncToken 'tLXwf-7mjTz-8DNoH-nKbMc-3BRGY' -ncFolder 'b7e7b98f-9c4c-49b0-851b-dc4ecac7dd6e'
|
||||||
Reference in New Issue
Block a user