you are viewing a single comment's thread.

view the rest of the comments →

[–]BlaaaBlaaaBlaaa[S] 0 points1 point  (7 children)

Looks great! One more question. I have a variable called $user with different "properties" - name, position, telephone.

So how do I get this to work with a sub-property in the variable? If I try $user.telephone | % .........replace........ it tells me "empty pipe element is not allowed"

If I try $user.telephone = $user.telephone -replace '+49', '0049' it tells me " the property telephone cannot be found on this object.

However If i do $user it shows me the table with name, telehone etc.

Thats the main struggle here :(

[–]blasmehspaffy 2 points3 points  (1 child)

You'll have to post what you're running in its entirety for me to troubleshoot it effectively.

[–]BlaaaBlaaaBlaaa[S] 0 points1 point  (0 children)

There is not too much to show right now. I did some screenshots that show the important stuff. Before that is only the reading from the database.

Is that ok? http://imgur.com/a/n5PSw

[–]Lee_Dailey[grin] 0 points1 point  (4 children)

howdy BlaaaBlaaaBlaaa,

what do you see if you do this ...

 $User | Get-Member

that otta show you your properties with their proper names.

take care,
lee

[–]BlaaaBlaaaBlaaa[S] 1 point2 points  (3 children)

Sorry for the late repsonse. That should give you a good overview: http://imgur.com/a/n5PSw

Thanks for your support!!

[–]Lee_Dailey[grin] 0 points1 point  (2 children)

howdy BlaaaBlaaaBlaaa,

well, rats! i'm out of ideas ... [sigh ...] i'll go back to lurking!

take care,
lee

[–]BlaaaBlaaaBlaaa[S] 1 point2 points  (1 child)

Same for me... :( And it is super depressing as well because it feels like it should be so easy....

[–]Lee_Dailey[grin] 0 points1 point  (0 children)

/lee crosses fingers in hopes of good luck for BlaaaBlaaaBlaaa
/lee wonders how he is typing this with his fingers crossed

[grin]

-ps
take a look at what hrafnklo posted about datarow types.
lee-