Replies: 2 comments
-
Hi @sardiskan psPAS makes heavy use of PowerShell objects. Some confusion in your scenario probably arises from the output display ( |
Beta Was this translation helpful? Give feedback.
-
Yes, I just realized before coming back here that the output IS placed into objects, I was just referencing the wrong object. While the output of the basic command says the name of the object is "AccountID"...in the actual data, the object is called just 'id". Thanks for this information and clarification. |
Beta Was this translation helpful? Give feedback.
-
I'm attempting to create a programatic way to login to servers with the root password for each one which is saved and managed in cyberark so I can install an application. To do this I need to be able to associate the accountID with the servername so I can then do a retrieval of the password.
I can get the Get-PASAccount to retrieve the account I need, but it displays all the information I don't need. What is the best way to go about manipulating the data on the fly so I'll only get the address and the password in my output? In standard powershell, a lot of commands create "objects" so you can reference those objects by name. Such as (get-aduser -filter *).name. This would only display the name object of the command's output. The output of the Get-PASAccount doesn't create objects like this so if I do (Get-PASAccount -search username).AccountID I wouldn't get any results because the data output doesn't create objects.
Beta Was this translation helpful? Give feedback.
All reactions