Hi,
i've written a gui around powershell to create users and there mailboxes. I first creating the user and after that i make the mailbox. I will run my tool from behind my worstation
Command:
enable-Mailbox -Identity OurDomain\PUK -Database "OurExchangeServer\First Storage Group\Mailbox Database"
But the command returns a error:
Enable-Mailbox : The Name property contains leading or trailing whitespace, which must be
removed.
At line:1 char:15
+ enable-Mailbox <<<< -Identity andreas\PUK -Database "OurExchangeServer\First Storage Group\Mailbo
x Database"
+ CategoryInfo : InvalidData: (OurDomain/A...n/Puk P. VanDe :ADObjectId
) [Enable-Mailbox], DataValidationException
+ FullyQualifiedErrorId : E7473FB4,Microsoft.Exchange.Management.RecipientTasks.Enab
leMailbox
What am i doing wrong i dont get it because i've used this command before to create mailboxes without any problem. What ever i try i cant get it to work anymore :(
Jos