add option to disable remote printer in rustdesk
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user