How do I assign a value to customattribute1 on creating a mailbox?
Hi I administrate a Live@EDU domain (based on Exchange 2010). I can create a mailbox with this command: $Password1 = ConvertTo-SecureString '12345678' -AsPlainText -Force new-mailbox -Name testname -Password $Password1 -WindowsLiveID testyname@mydomain.edu -ResetPasswordOnNextLogon 0 -FirstName Test -LastName Name –DisplayName “Test Name” I would like to modify this command to include the assignment of customattribute1 but this statement does not work: new-mailbox -Name testname -Password $Password1 -WindowsLiveID testyname@mydomain.edu -ResetPasswordOnNextLogon 0 -FirstName Test -LastName Name -CustomAttribute1 "Test Custom Attribute" –DisplayName “Test Name” Can someone help with this command or do I have to assign the customattribute1 after the mailbox is created? Thanks. - Andre
July 14th, 2010 9:06pm

Hi, You will always have to set CA1 after creating the mailbox. In Exchange 2007 there is a feature "Templates" , which is not available in Ex 2010. Templates allows us to create new mailbox with the same set of property values as of existing mailboxes. Regards, Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2010 9:21pm

What would the command be?
July 14th, 2010 10:56pm

What would the command be? Set-Mailbox -Identity userIdentity -CustomAttribute1 "AttributeValue" Identity could be: ADObjectID Alias Distinguished name (DN) Domain\Account GUID LegacyExchangeDN SmtpAddress User principal name (UPN) You can pass a collection of mailboxes to set-mailbox command to set CA1 for multiple mailboxes Get-mailbox | Set-Mailbox -CustomAttribute1 "AttributeValue" Regards, Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
Free Windows Admin Tool Kit Click here and download it now
July 14th, 2010 11:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics