to a disk.
In the profile folder of the domain controller, folders corresponding to AAA users and BBB users are automatically generated to store aaa
The configuration file of the user and BBB user. The Home folder automatically generates a folder corresponding to the AAA user and BBB user,
As the main folder for AAA users and BBB users
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/49/25/wKiom1QP_KTBbbctAAEuwMHG9Lo068.jpg "style =" float: none; "Title =" 20.png" alt = "wkiom1
, below let us look at the process.
Second, the environment description
1,DC (2003 system, installed with Office 2007)
2, the domain name is: tt.com
3, a OU:TT was established and a user was established under the TT OU: Alice
Third, use CSVDE export account
Microsoft defaults to providing two batch import export tools, namely CSVDE (CSV directory exchange) and LDIFDE (LDAP Data Interchange Format Directory Exchange), the specific choice of the above t
-disabled Yes: Indicates a disabled state after import-mustchpwd Yes : indicates the next logon to modify the password, the default value: No . To start creating a user:First, create a table that looks like the following:650) this.width=650; "border=" 0 "src=" http://img1.51cto.com/attachment/201009/222004746.jpg "/>Second, then save it as. CSV formatCreate an OU (IT) on ad, then run CMD, type the following command and execute:for/f "tokens=1,2,3,4,5
One: Query the creation date of all users in this ad domainGet-aduser-filter *-properties * | Select-object Name,sid, created,passwordlastset,@{n= "Lastlogondate"; E={[datetime]::fromfiletime ($_. lastLogonTimestamp)}} | Export-csv accountlist.csv-notypeinformation-encoding UTF8File Save Address:The effect export file for CSV format requires an Excel table to open the displaySecond, query the user's creation date under the specified OU: This feature c
This article will share with you the operations on the ad account. This time, we will develop a simple tool to check for expired users.
First, create a new user entity class. The attribute is the user information we want to obtain.
Public class userinfo {//
Then, you can search for user information.
Private ienumerable
This time, we mainly use the directorysearcher class: searchroot is the root node of t
Function: The AAA branch of the group is incorporated into the BBB branch, and scripts are executed to change the mail addresses of all AAA employees from FirstName.LastName@AAA.com to FirstName.LastName@BBB.com.
Use: Export the account of an AAA employee to the text file c: \ name.txt in ad in the following format:
Jackie Chen
Michael Jordan
Yao Ming
...
Source code:
Clsfunction change_
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.