Custom - Choose Mailbox Store depending on the first letter of your lastname
Hi
We were testing this product and was trying to create a template for user creation. At the moment we are uing a user creation tool builkd to suit our needs by some company but now planning to change since no support is provided.
Our old tool was able to create exchange accounts on a particular mailbox store depending on the first letter of the lastname. But i couldn't find a way to do that on ADManager Plus.
Is there a way to do this. We really need this feature as its used in our company.
A sample code from our old tool
- Select Case ex_server
Case "EXCHMB3" 'Exchange 2007 Server
FirstLetter = ucase(Left(uLoginID,1))
DoMessage "First Letter of Login ID is " & FirstLetter
If InStr("ABCDEF",FirstLetter) <> 0 Then
Domessage "Creating Mailbox in FirstGroup"
SG = "CN=" & ex_server & ".DB." & uSite & ".A-F,CN=" & ex_server & ".SG." & uSite & ".A-F"
ElseIf InStr("GHIJKL",FirstLetter) <> 0 Then
Domessage "Creating Mailbox in SecondGroup"
SG = "CN=" & ex_server & ".DB." & uSite & ".G-L,CN=" & ex_server & ".SG." & uSite & ".G-L"
ElseIf InStr("MNOPQR",FirstLetter) <> 0 Then
Domessage "Creating Mailbox in thirdGroup"
SG = "CN=" & ex_server & ".DB." & uSite & ".M-R,CN=" & ex_server & ".SG." & uSite & ".M-R"
ElseIf InStr("STUVWXYZ",FirstLetter) <> 0 Then
Domessage "Creating Mailbox in ForthGroup"
SG = "CN=" & ex_server & ".DB." & uSite & ".S-Z,CN=" & ex_server & ".SG." & uSite & ".S-Z"
End If
uSite = "Exchange Administrative Group (FYDIBOHF23SPDLT)"
New to ADSelfService Plus?