Getting error when trying to set-mailuser customattribute
Why am I getting this? Anyone know a workaround?
Get-MailUser -OrganizationalUnit "..." -IgnoreDefaultScope | Set-MailUser -IgnoreDefaultScope -CustomAttribute2 "..."
Set-MailUser : The operation failed on recipient "..." because there were some invalid arguments, which lead to the change of its type from
"MailUser" to "UserMailbox". Please correct your input.
At line:1 char:119
+ Get-MailUser -OrganizationalUnit "..." -IgnoreDefaultScope | Set-MailUser <<<< -IgnoreDefaultScope -CustomAttribute2 "..."
+ CategoryInfo : InvalidArgument: (...:ADObjectId) [Set-MailUser], InvalidOperationException
+ FullyQualifiedErrorId : 70F3D023,Microsoft.Exchange.Management.RecipientTasks.SetMailUserDavid Jenkins
November 2nd, 2011 11:21am
Something wrong with your syntax
For the -OrganisationalUnit you haven't specified the OU?
Sukh
Free Windows Admin Tool Kit Click here and download it now
November 2nd, 2011 6:53pm
Hi David,
If you just run the cmdlet Get-MailUser -OrganizationalUnit "..." -IgnoreDefaultScope, will the result be expected?
Please try to run the cmdlet Set-MailUser -Identity "mailuser" -IgnoreDefaultScope -CustomAttribute2 "..."
for the specific MailUser to see whether it works.
Frank Wang
November 3rd, 2011 4:32am
I removed the OU on purpose for posting. Just imagine it is there.David Jenkins
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2011 9:19am
Hi David,
If you just run the cmdlet Get-MailUser -OrganizationalUnit "..." -IgnoreDefaultScope, will the result be expected?
Please try to run the cmdlet Set-MailUser -Identity "mailuser" -IgnoreDefaultScope -CustomAttribute2 "..."
for the specific MailUser to see whether it works.
Frank Wang
November 3rd, 2011 11:24am
Can you post the exact command you're trying. Matbe edit out the OU but keep the format the same?
Also, have you trued what Frank suggested?Sukh
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2011 2:48pm
Hi David,
Any updates?
Frank Wang
November 6th, 2011 8:47pm