diff --git a/Dynamic Folder/Wallix Bastion/Wallix Bastion (PowerShell).rdfx b/Dynamic Folder/Wallix Bastion/Wallix Bastion (PowerShell).rdfx index f2e5d70..d83550e 100644 --- a/Dynamic Folder/Wallix Bastion/Wallix Bastion (PowerShell).rdfx +++ b/Dynamic Folder/Wallix Bastion/Wallix Bastion (PowerShell).rdfx @@ -80,12 +80,12 @@ $global:OutputEncoding = New-Object Text.Utf8Encoding -ArgumentList (,$false) # Folder script for import Wallix Bastion connections #> -# Variables replaced by Royal TS -$WallixUsername = "$EffectiveUsername$" -$WallixPassword = "$EffectivePassword$" -$WallixHostname = "$CustomProperty.Hostname$".Trim() -$WallixUseHTPPS = "$CustomProperty.UseHTTPS$" -$WallixFingerprint = "$CustomProperty.WallixFingerprint$".Trim() +# Variables replaced by Royal TS (using single quotes to avoid interpretation of the $ character) +$WallixUsername = '$EffectiveUsername$' +$WallixPassword = '$EffectivePassword$' +$WallixHostname = '$CustomProperty.Hostname$'.Trim() +$WallixUseHTPPS = '$CustomProperty.UseHTTPS$' +$WallixFingerprint = '$CustomProperty.WallixFingerprint$'.Trim() # Constants $ROYALTS_ID_CREDENTIALS = "DynamicCred01" @@ -173,9 +173,9 @@ $global:OutputEncoding = New-Object Text.Utf8Encoding -ArgumentList (,$false) # Credentials script for connection to Wallix Bastion throw SSH or RDP #> -# Variables replaced by Royal TS -$WallixUsername = "$Target.CustomField1$:$EffectiveUsername$" -$WallixPassword = "$EffectivePassword$" +# Variables replaced by Royal TS (using single quotes to avoid interpretation of the $ character) +$WallixUsername = '$Target.CustomField1$:$EffectiveUsername$' +$WallixPassword = '$EffectivePassword$' # Return credentials $Object = @{