PowerShell scripts to Create personal site

$site=Get-SPSite "https://mysitesp2013.x.com";
$serviceContext = Get-SPServiceContext -Site $site
$userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext)
$testuser = $userProfileConfigManager.GetUserProfile("domain\user")
$testuser.PersonalSiteInstantiationState
$testuser.CreatePersonalSite()

Comments

Popular posts from this blog

Adjust the Search SharePoint Performance level

SharePoint 2013 User Profile synchronization versus import

Usage and Popularity Trends Report not showing correct numbers