Morning all,
Im running the following command to sync usernames with AD:
Get-SPUser –Web http://sharepoint ¦ Set-SPUser –SyncFromAD
But i get the following error:
PS C:\Users\adminmj$> cd\
PS C:\> Get-SPUser -Web http://sharepoint ¦ Set-SPUser -SyncFromAD
Get-SPUser : A positional parameter cannot be found that accepts argument 'Set-
SPUser'.
At line:1 char:11
+ Get-SPUser <<<< -Web http://sharepoint ¦ Set-SPUser -SyncFromAD
+ CategoryInfo : InvalidArgument: (:) [Get-SPUser], ParameterBind
ingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.SharePoint
.PowerShell.SPCmdletGetUser
PS C:\>
Any help would be much appreciated.
Thanks
Martin