manual start user profile import

Thanks Trevor,

Finally created the task scheduled with this command:

Sync Incremental

Add-PsSnapin Microsoft.SharePoint.PowerShell
$UPS= Get-SPServiceApplication | where { $_.DisplayName -eq “User Profile Service Application”}
$UPS.StartImport($false)

And, create another task scheduler for Full Synchronization with this command:

Sync FULL

Add-PsSnapin Microsoft.SharePoint.PowerShell
$UPS= Get-SPServiceApplication | where { $_.DisplayName -eq “User Profile Service Application”}
$UPS.StartImport($true)
原文地址:https://www.cnblogs.com/hqbird/p/5593041.html