Exchange.2k.Mailbox.SetProperty
Top  Previous  Next


Sets / edits Exchange 2000 or 2003 mailbox properties

Category

Exchange 2000

Script section
[Batch], inside Data.Loop..EndLoop statement

Requirements
·Exchange 2000 server  
·Exchange 2000 system manager  

Exchange.2k.Mailbox.SetProperty CommonName, PropertyName, Value

CommonName
Full AD path to mailbox owner account  
 
If the common name contains a comma (example cn = Smith, Steve), the comma must be preceded with a backslash and the cn must be surrounded by quotes. Example:  
Exchange.2k.Mailbox.SetProperty %ADOUPath%/cn="Smith\, Steve", SMTPEmail, steve@acme.com  

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. See below examples for how to modify Outlook mobile access and Outlook web access.  

Value
New value for property  

Table 1 - PropertyName parameter
PropertyName
Property in Exchange 2000
Comment
MailNickname
Exchange General / Alias

submissionContLength
Exchange General / Delivery Restrictions / Outgoing message size
Leave value blank to set "Use default limit"
delivContLength
Exchange General / Delivery Restrictions / Incoming message size
Leave value blank to set "Use default limit"
authOrig
Exchange General / Delivery Restrictions / Message restrictions / Accept messages - Only from
Use this or authOrig. Both values must be deleted for "From everyone".

Syntax: RFC 1779 format + "§" after each entry. (AD array property)

Example: CN=Steve, OU=MailOU, C=d31, DC=acme, DC=com§ CN=Lisa, OU=MailOU, C=d31, DC=acme, DC=com§
unauthOrig
Exchange General / Delivery Restrictions / Message restrictions / Accept messages - From everyone except
Use this or unauthOrig. Both values must be deleted for "From everyone".

Syntax: RFC 1779 format + "§" after each entry. (AD array property)

Example: see authOrig.
publicDelegates
Exchange General / Delivery Options / Send on behalf
Syntax: RFC 1779 format + "§" after each entry. (AD array property)

Example: see authOrig.
altRecipient
Exchange General / Delivery Options / Forwarding address / Forward to
Syntax: RFC 1779 format
deliverAndRedirect
Exchange General / Delivery Options / Forwarding address / Deliver messages to both forwarding address and mailbox
Flag, value = "Yes" or "No"
msExchRecipLimit
Exchange General / Delivery Options / Recipient limits/ Maximum recipients

mDBUseDefaults
Exchange General / Storage Limits / Use mailbox store defaults
Flag, value = "Yes" or "No"
mDBStorageQuota
Exchange General / Storage Limits / Issue warning at

mDBOverQuotaLimit
Exchange General / Storage Limits / Prohibit send at

mDBOverHardQuotaLimit
Exchange General / Storage Limits / Prohibit send and receive at

SMTPEmail
E-mail addresses / Main SMTP (Reply)
Sets main SMTP address. To add more addresses, use "proxyAddresses".
textEncodedORAddress
E-mail addresses / Main X400
Sets main X400 address. To add more addresses, use "proxyAddresses".
proxyAddresses
E-mail addresses
Notice: this property OVERWRITES the SMTPEmail and the textEncodedORAddress properties.

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

syntax: type:address,"§" after each entry (AD array property)

type="smtp", "x400", "ms" "gwise", "notes" or "ccmail". Uppercase "SMTP" or "X400" = primary address.

example: smtp:steve@acme.com§

(more examples below)
displayNamePrintable
Exchange Advanced / Simple display name

msExchHidefromAddressLists
Exchange Advanced / Hide from Exchange address lists
Flag, value = "Yes" or "No"
   

Tips
·Use the SetupBatcher script wizard to get started with the syntax.  
·Set properties in "active directory users and computers" and then use SetExplorer to see what actually changes, see How to compare all properties for two accounts.  

Examples

1) Set SMTP address for account "steve" in users container of domain d09.acme.com to "steve@acme.com"

Exchange.2k.Mailbox.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, SMTPEmail, steve@acme.com

2) Set SMTP addresses "steve2@acme.com" (primary), "st@acme.com" and "steve@otherplace.com"

Exchange.2k.Mailbox.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, proxyAddresses, SMTP:steve@acme.com§ smtp:st@acme.com§ smtp:steve@otherplace.com§ 

3) Set outgoing message size limit to 100k

Exchange.2k.Mailbox.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, submissionContLength, 100

4) Enable/disable Outlook mobile access

Disable

AD.Account.SetProperty  dc=com/dc=acme/dc=D09/cn=users/cn=steve, i$msExchOmaAdminWirelessEnable, 2

Enable

AD.Account.SetProperty  dc=com/dc=acme/dc=D09/cn=users/cn=steve, $msExchOmaAdminWirelessEnable,

5) Enable/disable Outlook web access

This setting may affect other protocols, make sure to use SetupExplorer to review initial settings as described under tips above.

Disable

AD.Account.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, $protocolSettings, HTTP§0§1§§§§§§

Enable

AD.Account.SetProperty dc=com/dc=acme/dc=D09/cn=users/cn=steve, $protocolSettings, HTTP§1§1§§§§§§