Forum

Posts by markus09 (markus09)

markus09
markus09
Posts: 3

Confirmed working!

Thanks a million for the fast fix.

-Markus

7 mths Powershell - Create new Entry
markus09
markus09
Posts: 3

Hi

Okay. That's a bit of a hindrance...

I noticed that if i create the connection as a net object, the password list can be set:

$PasswordList=New-Object "Devolutions.RemoteDesktopManager.Business.Connection"
$PasswordList.Credentials.PasswordList = $CredentialArray

Then I can cast it as [RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection]

$psPasswordList=[RemoteDesktopManager.PowerShellModule.PSOutputObject.PSConnection]$PasswordList

But all the needed properties are not set and the object does not work. I'm willing to try a workaround using the .net object if there is one.

-Markus

7 mths Powershell - Create new Entry
markus09
markus09
Posts: 3

Hi

Trying to follow the example but hitting a brick wall:


PS C:\Windows\system32> $ps.Credentials.PasswordList = $psArray
'PasswordList' is a ReadOnly property.
At line:1 char:1
+ $ps.Credentials.PasswordList = $psArray
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (smile [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException

Why is it read only?

-Markus

7 mths Powershell - Create new Entry