[
void
][reflection.assembly]::Loadwithpartialname(
"Microsoft.Office.Server"
) |
out
-
null
;
$site=
new
object
Microsoft.SharePoint.SPSite(
"https://c05470sp10:7443"
); #Central Admin site
$servercontext=[Microsoft.Office.Server.ServerContext]::GetContext($site);
$site.Dispose();
$upm =
Microsoft.Office.Server.UserProfiles.UserProfileManager($servercontext);
$pc = $upm.GetEnumerator();
$pc | FT DisplayName
$hashTableForAccountName = @{Label=
"AccountName"
; Expression={$_[
]}
$pc | FT DisplayName,@{Label=
]}};
"Department"
]}},@{Label=
"Job Title"
"SPS-JobTitle"
$pc | Sort -property @{Expression={$_[
]}} | FT DisplayName,@{Label=
]}} | ?{$_[
] -like
"I.T."
} | FT DisplayName,@{Label=
"FirstName"
"PictureUrl"
].Value -eq $
-or $_[
].Value -eq
""
} | FT DisplayName;
Matthew Yarlett edited Original. Comment: Updated links, added links to other wiki pages and added some images.
That's Great! Thanks Ed!
And finally we featured this article on the home page of TNWiki!
You're welcome! Your article was also featured on the Wiki Ninjas blog: blogs.technet.com/.../july-sharepoint-guru-matthew-yarlett-brings-us-quot-sharepoint-2010-viewing-sorting-and-filtering-sharepoint-user-profiles-using-powershell-quot.aspx
Thanks!
Great! Thanks Ed!
Your winning article was featured on MSDN blogs here: blogs.msdn.com/.../sharepoint-guru-sharepoint-2010-viewing-sorting-and-filtering-sharepoint-user-profiles-using-powershell.aspx
Naomi N edited Revision 11. Comment: Direct link
Congratulations on winning the gold medal! blogs.technet.com/.../technet-guru-awards-july-2013.aspx
Matthew Yarlett edited Revision 8. Comment: Fixed code formatting
Matthew Yarlett edited Revision 7. Comment: Updated wording at the beginning of the article.
Matthew Yarlett edited Revision 6. Comment: Minor change to wording (using Hash Tables with Format-Table) and an additional example of creating a Hash-Table
Ed Price - MSFT edited Revision 4. Comment: Title casing; tags
Matthew Yarlett edited Revision 1. Comment: Trying to fix link to other wiki article "SharePoint 2010: Delete Manager from UserProfile"