Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with script!

Status
Not open for further replies.

Soundlover4711

Technical User
Joined
Jul 27, 2005
Messages
15
Location
NL
Hi All!

We are migrating to MS Exchange and we've created a script wich "should" creates the Mailboxes on our Exchange servers in different storage groups. We are using the following:

Const CExchangeTargetDatabase="CN=1 Mailbox Store 1A (Server1),CN=2 Storage Group,CN=InformationStore,CN=Server1,CN=Servers,CN=StoragreGroup,CN=Administrative Groups,CN=Company,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Compyna,DC=COM"

This should create a Mailbox on Server1 in the mailbox store 1A in the 2nd storage group! BUT this is not the case the mailbox is created on the right server but in a indiscriminated store and storage group. So we recognized that the script only uses the right server to create the mailbox the rest is insignificant.

Could someone of you see an error in this line?!?
 
How about posting your whole script. All you have posted here is an LDAP path. There are plenty of erros in what you posted, but I am sure you made this all generic for your post.

Typos in [red]RED[/red]


Const CExchangeTargetDatabase="CN=1 Mailbox Store 1A (Server1),CN=2 Storage Group,CN=InformationStore,CN=Server1,CN=Servers,CN=[red]Storagre[/red]Group,CN=Administrative Groups,CN=Company,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=[red]Compyna[/red],DC=COM"

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top