Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to add data to a specific member of a PSObject

$
0
0

Lets say I have a PSObject collection that has three NoteProperties like this:

WebServer         Website           Physical Folder

----------           ---------            --------------

server1        www.server1.com   e:\site1

server2        www.server2.com   e:\site2

server3       www.server3.com    e:\site3

...                ...                          ... (lots more)

Also, lets say I want to add a couple of additional properties like bindings and ssl which is gathered in a different way. So if I add two additional NoteProperties to this PSObject

bindings                ssl            site

---------             --------      ---------

test.site1.com       no         www.server1.com

test2.site2.com      yes      www.server2.com

How can I add this information to the first PSObject collection, making sure that the info forwww.server1.com is matched with server1.com from the first object?

       


Viewing all articles
Browse latest Browse all 21975

Trending Articles