Have ran into a problem with creating exchange mailboxes. It works ok
for all accounts except when the user has a ' in the name part of the
DN. Obvoiusly we create the AD account in the following form:

cn=Joanne d'Arc,ou=,ou=... etc. this works great.

when we later should mailbox enable this mailbox the cmdlet bombs out:

DirXML Log Event -------------------
Driver: \IDV\res\DriverSet\AD-Org
Channel: Subscriber
Object: \IDV\Active\Users\chrdar
Status: Error
Message: Exchange 2010 Exception. code:0x00000380 Error completing exchange 2010 command. ERROR: The string starting:
At line:1 char:363
+ Enable-Mailbox
-Identity 'CN=Joanne D'Arc,OU=Employees,DC=blah,DC=domain,DC=com'
-Database 'CN=US-MDB7,CN=Databases,CN=Exchange Administrative Group ,
CN=Administrative Groups,CN=blah,CN=Microsoft Exchange,CN=Services,
-DomainController 'bigserver.blah.domain.com <<<< '
is missing the terminator: '.

obviously due to the ' in the DN.
Question: Can the ' as string delimiter be replaced by " or is the
solution to actually strip out the ' form fullname (that we user in the


abergvall's Profile: https://forums.netiq.com/member.php?userid=278
View this thread: https://forums.netiq.com/showthread.php?t=47935