用于自动填充Active Directory中现有用户的属性的脚本 [英] Script to automatically fill the attributes of Existing Users in Active Directory

查看:79
本文介绍了用于自动填充Active Directory中现有用户的属性的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

我有AD和Exchange服务器,

I have AD and Exchange Servers,

我有一个 所有用户的列表以及有关Excel的信息片。我想将此信息自动填充到活动目录中的用户个人资料中。

I have a list of all users and there information on Excel Sheet. I want to fill this information automatically into the users profile on active directory.

该列表包含用户的电子邮件地址。请建议构建一个脚本来执行上述活动。

The list has the email address of the users. Please advise to build a script to do the above mentioned activity.

推荐答案

那又怎样您要做的是将Excel工作表转换为csv文件,使用Import-Csv cmdlet读取csv文件并使用Set-ADUser cmdlet为每个用户设置所需的值。

So what you want to do is convert the Excel sheet to a csv file, use the Import-Csv cmdlet to read through the csv file and use the Set-ADUser cmdlet to set the required values for each user.

有关这些cmdlet的详细信息,请查看两个cmdlet的Technet条目:

For more information about these cmdlets have a look at the Technet entries for both cmdlets:

Import-Csv

设置-ADUser





这篇关于用于自动填充Active Directory中现有用户的属性的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆