Skip to content

Instantly share code, notes, and snippets.

@tomorgan
Created March 1, 2013 14:26
Show Gist options
  • Save tomorgan/5064983 to your computer and use it in GitHub Desktop.
Save tomorgan/5064983 to your computer and use it in GitHub Desktop.
Function Populate-UserObject($UserArg)
{
$thisUser = new-Object($t + ".User")
$thisUser.Name = $UserArg.Name
$thisUser.Email = $UserArg.EmailAddress
$thisUser.ID = $UserArg.Guid
$innerObject = $UserArg.GetUnderlyingObject()
$thisUser.SIP = $innerObject."msRTCSIP-PrimaryUserAddress"
return $thisUser
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment