Powershell scripts for Sharepoint 2010
Get service context from site, not from httpContext as usual
SPServiceContext serviceContext = SPServiceContext.GetContext(site);
UserProfileManager userProfileMgr = new UserProfileManager(serviceContext);
Sharepoint | service context | spservicecontext | timer job | user profile | userprofilemanager
© 2012 All rights reserved.