Powershell - Create new Entry
Confirmed working!
Thanks a million for the fast fix.
-Markus
Powershell - Create new Entry
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
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