Add Custom Attribute using data from CSV file
通过CSV文件,来为邮件用户批量添加自定义属性。注意请将您的CSV文件存为unicode格式。
|
1 2 3 4 5 6 7 8 9 10 11 |
##===============================================
## Title : Add Custom Atttribute
## Description : Add Custom Attribute using data from CSV file.
## Author : LeoHuang
## Date : 11/09/2009
## sample CSV file
# alias,CustomAttribute1,CustomAttribute2
# Test1,branch1,branch2
# Test2,branch1,branch2
##=============================================
Import-Csv c:\users.csv | foreach {get-user $_.alias | set-mailbox -CustomAttribute1 $_.CustomAttribute1 -CustomAttribute2 $_.CustomAttribute2} |
