1

how can I print out $user["EMail"] from below code snippet

cls  
$web =Get-SPWeb http://wer.com/sites/wooly/
$list=$web.Lists["User Information List"]
$user =$list.GetItemById(##)
$user["EMail"].print()?????????????????????

I tried $user["EMail"].print() , I tried $user["EMail"].echo() but no luck. Thanks

Zarko
  • 23
  • 1
  • 4

1 Answers1

1

I think you are looking for something along the lines of this:

Write-output ($user["Email"])
Dave Wise
  • 13,181
  • 18
  • 19