From 21dfb68eb54dcf42967d4046bc5ab5b4b51f9d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tollk=C3=BChn?= Date: Thu, 18 Sep 2025 14:15:25 +0200 Subject: [PATCH] add option to disable remote printer in rustdesk --- 32_RustDeskClient_bnvbingenieure/pswrapper.cmd | 2 +- 32_RustDeskClient_bnvbplus/RustdeskInstall.ps1 | 10 +++++++++- 32_RustDeskClient_bnvbplus/pswrapper_bplus.cmd | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/32_RustDeskClient_bnvbingenieure/pswrapper.cmd b/32_RustDeskClient_bnvbingenieure/pswrapper.cmd index 1095eb4..f010ff6 100644 --- a/32_RustDeskClient_bnvbingenieure/pswrapper.cmd +++ b/32_RustDeskClient_bnvbingenieure/pswrapper.cmd @@ -1,4 +1,4 @@ @echo off set SRCPATH=%~dp0 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' \ No newline at end of file +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' \ No newline at end of file diff --git a/32_RustDeskClient_bnvbplus/RustdeskInstall.ps1 b/32_RustDeskClient_bnvbplus/RustdeskInstall.ps1 index 2436342..48fbe63 100644 --- a/32_RustDeskClient_bnvbplus/RustdeskInstall.ps1 +++ b/32_RustDeskClient_bnvbplus/RustdeskInstall.ps1 @@ -15,7 +15,10 @@ Specifies the length of the password to connect to the RustDesk client .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 PS> .\RustdeskInstall.ps1 -rdServer "somehost.example.tld" -rdKey "KeyFromServer=" @@ -38,6 +41,7 @@ param( [string]$rdKey = $null, [int]$pwLength = 8, [bool]$enableAudio = $True, + [bool]$enablePrinter = $True, [bool]$toNextcloudPassword = $False, [string]$ncBaseUrl, [string]$ncUsername, @@ -174,6 +178,10 @@ local-ip-addr = '$ipAddress' $rd2Toml += "`nenable-audio = 'N'" } + if (!($enablePrinter)) { + $rd2Toml += "`nenable-remote-printer = 'N'" + } + #Workaround: Copy permanent password settings from: # $env:Appdata\RustDesk\config\RustDesk.toml # to: diff --git a/32_RustDeskClient_bnvbplus/pswrapper_bplus.cmd b/32_RustDeskClient_bnvbplus/pswrapper_bplus.cmd index b0bce56..d0854b9 100644 --- a/32_RustDeskClient_bnvbplus/pswrapper_bplus.cmd +++ b/32_RustDeskClient_bnvbplus/pswrapper_bplus.cmd @@ -2,4 +2,4 @@ set SRCPATH=%~dp0 cd "%SRCPATH:~0,-1%" 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' \ No newline at end of file +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' \ No newline at end of file