Set-Mailbox settings for multiple users
Hi theregot a question, what do i have to write into the emc, when i'd like to do some changes for some users.i tried it withset-Mailbox -identityuser1,user2,user3-office:207all what i get was an error :-)do i have to write a script with a "do while" loop? but i dont have a specific user-list in a file...thanks for input.uerueluem
May 28th, 2009 1:02pm

You can create a csv file with below content... User username1 username2 username3 Run below cmdlet to import the users from csv and set the office one by one... Import-CSV "C:\path to csv\csvfilename.csv" | foreach {Set-Mailbox -identity $_.user -office:207}Amit Tank | MVP Exchange Server | MCITP: EMA | MCSA: M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2009 1:54pm

Hi,You can do a "user1", "user2" | set-mailbox ......BR,Bo
May 28th, 2009 2:01pm

Hello,As suggested already you can use Set-Mailbox cmdlet for individual users and use Import-CSV for bulk operations. The error you see may be bacause of some wrongly specified values. You can refer, http://technet.microsoft.com/en-us/library/bb123981.aspxfor more information. -Identity parameter may not support multiple values.Milind Naphade | MCTS:M | http://www.msexchangegeek.com
Free Windows Admin Tool Kit Click here and download it now
May 28th, 2009 3:24pm

Both methods from Amit and Bo will work, I have verified in the lab
May 29th, 2009 11:34am

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

Other recent topics Other recent topics