New answers tagged

1

Try: Add-PSSnapin Microsoft.SharePoint.PowerShell -EA 0 $UserSPU = "domain\user" $site = Get-SPSite https://sharepoint.example.com $web = $site.OpenWeb() try { $user = $web.EnsureUser($UserSPR) } Catch { Write-Host 'User not found.' }



Top 50 recent answers are included