Exchange.55.Mailbox.SetProperty
Top  Previous  Next


Sets / edits Exchange 5.5 mailbox properties

Category
Exchange 5.5

Script section
All

Requirements

·Exchange 5.5 server with Exchange SP4 or later  
·ADSI2.5  

Exchange.55.Mailbox.SetProperty Server, ContainerPath, MailBoxNameColumnVariable, PropertyName, Value

Server
Exchange server name  

ContainerPath
Path to container of mailbox  

MailBoxNameColumnVariable
Format: "%colX%", X = Column in [Data] section with Exchange server mailbox names  

PropertyName
Name of property to set, see table 1 below  
 
Put a "$" character in front of the property name to bypass the syntax checker in order to modify AD properties unknown by SetupBatcher.  

Value
New value for property, leave value blank to delete the property  

Table 1 - PropertyName parameter
PropertyName
Property in Exchange 5.5
Comment
givenName
General / First

initials
General / Initials   

sn
General / Last

cn
General / Display

postalAddress
General / Address

l
General / City

st
General / State

postalcode
General / Zip Code

co
General / Country

title
General / Title

company
General / Company

department
General / Department

physicalDeliveryOfficeName
General / Office

secretary
General / Assistant

telephoneNumber
General / Phone   

telephoneNumber
Phone / Business
Same as above
homephone
Phone / Home

telephone-office2
Phone / Business 2

telephone-home2
Phone / Home 2   

facsimileTelephoneNumber
Phone / Fax

mobile
Phone / Mobile

telephone-assistant
Phone / Assistant

pager
Phone / Pager

info
Phone / Notes

mail
E-mail addresses / Main SMTP (Reply)
Sets main SMTP address. To add more addresses, use "OtherMailbox".
textEncodedORAddress
E-mail addresses / Main X400
Sets main X400 address. To add more addresses, use "OtherMailbox".
OtherMailbox
E-mail addresses / Other SMTP / X400
syntax: type$address,"§" after each entry

type="smtp", "x400", "ms" or "ccmail"

example: smtp$steve@acme.com§

Notice: sets / modifies all additional addresses at once - all additional addresses must be specified in the same command.

(see examples below)
MDB-Use-Defaults
Limits / Information storage limits / Use information store defaults
Flag, value = "Yes" or "No"
mdb-storage-quota
Limits / Information storage limits / Issue warning (K)

mdb-over-quota-limit
Limits / Information storage limits / Prohibit send (K)

DXA-Task
Limits / Information storage limits / Prohibit send and receive (K)

submission-cont-length
Limits / Message sizes / Outgoing

deliv-cont-length
Limits / Message sizes / Incoming

hide-from-address-book
Advanced / Hide from address book
Flag, value = "Yes" Notice: it is not possible to use "No" to make a hidden account visible since SetupBatcher cannot modify hidden accounts.
admin-description
Advanced / Administrative note



Common problems
The error message "OLE error 8007202F" means "There was a constrain violation" - most common causes: an empty string in a parameter or too long string.

Examples
1) Set title to value in column 10

Exchange.55.Mailbox.SetProperty ExchSrv01, o=Acme/ou=Site01/cn=Recipients, %col2%, title, %col10%

2) Set X400 address:

[Settings_Begin]
BatchSettings.Delimiter=;
BatchSettings.MarkerCol=7
SET ExchContPath=o=y/ou=D30/cn=Recipients
[Settings_End]

[Machines_Begin]
\\EDU2830
[Machines_End]

[Batch_Begin]
Data.Loop   
 Exchange.55.Mailbox.SetProperty edu2830, %ExchContPath%, %col3%, textEncodedORAddress,c=US;a= ;p=Acme;o=Site01;s=%col2%;g=%col1%   
Data.EndLoop   
[Batch_End]

[Data_Begin]
Deborah;Chiel;dc;;;;
Martin;Gardner;mg;;;;
William;Karush;wk;;;;
[Data_End]


3) Set OtherMailbox to SMTP address "steve@acme.com":

Exchange.55.Mailbox.SetProperty ExchSrv01, o=Acme/ou=Site01/cn=Recipients, steve, OtherMailbox, smtp$steve@acme.com§

4) Set OtherMailbox to SMTP addresses "steve2@acme.com", "st@acme.com" and "steve@otherplace.com":

Exchange.55.Mailbox.SetProperty ExchSrv01, o=Acme/ou=Site01/cn=Recipients, steve, OtherMailbox, smtp$steve@acme.com§ smtp$st@acme.com§ smtp$steve@otherplace.com§

5) Delete the OtherMailbox property:

Exchange.55.Mailbox.SetProperty ExchSrv01, o=Acme/ou=Site01/cn=Recipients, steve, OtherMailbox,

6) Set mailbox size warning and prohibit levels:

[Settings]
SET ExchContPath=o=y/ou=D30/cn=Recipients
SET username=%col4%


[Machines]
\\EDU2830

[Batch]
Exchange.55.Mailbox.SetProperty %servername2%, %ExchContPath%, %username%, mdb-use-defaults, no
Exchange.55.Mailbox.SetProperty %servername2%, %ExchContPath%, %username%, mdb-storage-quota, 1000 
Exchange.55.Mailbox.SetProperty %servername2%, %ExchContPath%, %username%, mdb-over-quota-limit, 2000 
Exchange.55.Mailbox.SetProperty %servername2%, %ExchContPath%, %username%, dxa-task, 3000