Saturday, 15 May 2010

exchange server - Set user description and job title during new mailbox creation -



exchange server - Set user description and job title during new mailbox creation -

i trying create multiple linked mailboxes on exchange 2013 using powershell , .csv file. have column each parameter need in .csv file. mailbox creation works fine parameters until introduce "description" , "title". reason powershell not recognize these parameters , script fails. here script using.

import-csv "c:\linkedmailboxtest.csv" | foreach { new-mailbox -name $_.displayname -alias $_.alias -firstname $_.firstname -lastname $_.lastname -samaccountname $_.samaccountname -userprincipalname $_.userprincipalname -description $_.description -title $_.title -organizationalunit $_.organizationalunit -linkedmasteraccount $_.linkedmasteraccount -linkeddomaincontroller $_.linkeddomaincontroller -database $_.database }

this error message getting: "a parameter cannot found matches parameter name 'description'. know doing wrong?

description , title not exchange attributes, active directory attributes. need invoke separate command set-user perform this. note in linked materials title , description not available set in verb-mailbox cmdlets.

set-mailbox set-user

exchange-server

No comments:

Post a Comment