Users

All Posts (3)

avatar

markus09

Disabled

Powershell - Create new Entry

avatar
avatar
avatar
avatar
avatar
markus09
Disabled

Confirmed working!

Thanks a million for the fast fix.

-Markus

Powershell - Create new Entry

avatar
avatar
avatar
avatar
avatar
markus09
Disabled

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

Powershell - Create new Entry

avatar
avatar
avatar
avatar
avatar
markus09
Disabled

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: (:) [], RuntimeException

+ FullyQualifiedErrorId : PropertyAssignmentException

Why is it read only?

-Markus

1 - 3 of 3 items