Link to home
Start Free TrialLog in
Avatar of Erwin Pombett
Erwin PombettFlag for Switzerland

asked on

with powershell i'm try to recover the msExchShadowProxyAddresses but how to recover all infomrations ?

Hello,

i'm trying to recover all the msExchShadowProxyAddresses  but if i pass the following command :

Get-ADUser -identity  someone  -Properties msExchShadowProxyAddresses -server thed.oma.in 

Open in new window

:

i always receive infos that have something like  "... }" at the end and that make me think that there is still infos that i can not read.

my questions :

how can i recover all the information that stands inmsExchShadowProxyAddresses  attribute ?

thanks

toshi
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Erwin Pombett

ASKER

wonderful !

thank you so much for your answer and explanations.

just a question on your answers
1. ok, i can see the full list
2. ko , i still see the "...}" on that attribut.
3. ko, like for 2.
4. wow ! what are you doing in that one ?  i can recover data when keep answer in object then query the propriety object.
this 4th is interesting for me. can you explain me a bit more how you did it ?

thank you in advance.

toshi

toshi
Sometimes truncation is done by PowerShell to try to fit everything in your console.  In those circumstances 2 and 3 could help.
Regarding the last method, as I mentioned that is using what is known as a calculated property.
@{n="msExchShadowProxyAddresses";e={$_.msExchShadowProxyAddresses -join "`n"}}

Open in new window

Another way to write it.
@{Name="msExchShadowProxyAddresses";Expression={$_.msExchShadowProxyAddresses -join "`n"}}

Open in new window

You can also use "Label" or "L" instead of "Name" or "n".  Name is the name of the property you want to create/calculate.  Expression is a scriptblock which executes to get the property value.  Joining by a newline character (`n) was just a choice, you could try others that might work for you.