Because select-object returns you a hashtable for all of the variables you 
select.

Dunno your script, or what results you specifically want, but ft or fl might 
return better results for you.

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Daniel Chenault
Sent: Monday, February 2, 2015 7:11 PM
To: powershell@lists.myitforum.com
Subject: [powershell] @{??

Exchange-specific cmdlet but the actual question is more generic

$myvar = get-mailboxautoreplyconfiguration -identity <alias> | select-object 
autoreplystate
write-host $myvar
outputs: @{Autoreplystate=disabled}

Why does $myvar get populated with that instead of just "Disabled"? I've been 
searching and maybe I"m just using the wrong search terms but I'm getting 
bupkes as an explanation for this or how to get only the value.

================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1


================================================
Did you know you can also post and find answers on PowerShell in the forums?
http://www.myitforum.com/forums/default.asp?catApp=1

Reply via email to