Hello, I am trying to change users emails and identities from one domain to another but when testing this I get an error message saying the below, which seems to contradict itself. What am I doing wrong?
Update-PWUser : Cannot bind parameter 'User'. Cannot convert the "Bentley.ProjectWise.PowerShell.Common.User" value of type "Bentley.ProjectWise.PowerShell.Common.User" to type "Bentley.ProjectWise.PowerShell.Common.User".At line:49 char:29+ Update-PWUser -User $user+ ~~~~~ + CategoryInfo : InvalidArgument: (:) [Update-PWUser], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Bentley.ProjectWise.PowerShell.Commands.UpdatePWUser
You cannot mix and match between PWPS and PWPS_DAB module. That is the reason for the error.
Take a look at the Update-PWUserProperties and Set-PWUserIdentity cmdlets.
Thanks but is the set-pwuseridentity a new cmdlet as my pwershell says it does not exist?
Set-PWUserIdentity : The term 'Set-PWUserIdentity' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Which version of the PWPS_DAB module do you have installed? I would suggest upgrading to the latest.
Okay I will give this a go