TAILIEUCHUNG - Active Directory Cookbook for windows server 2003- P18

Active Directory Cookbook for windows server 2003- P18:If you are familiar with the O'Reilly Cookbook format that can be seen in other popular books, such as the Perl Cookbook, Java Cookbook, and DNS and BIND Cookbook, then the layout of this book will not be anything new to you. The book is composed of 18 chapters, each containing 10-30 recipes for performing a specific Active Directory task. Within each recipe are four sections: problem, solution, discussion, and see also. | strUserDN UserDN . cn rallen cn users dc rallencorp dc com strOUDN NewParentDN . ou Sales dc rallencorp dc com ---- END CONFIGURATION ----------- Set objUser GetObject LDAP strUserDN Set objOU GetObject LDAP strOUDN Discussion Moving a user object between OUs in the same domain has no direct impact to the actual user. The only thing to be cautious of is the impact of moving the user to a new OU that may have different security or GPOs applied to it. See Also Recipe for moving objects between OUs Recipe Renaming a User Problem You want to rename a user. Solution Using a graphical user interface 1. Open the Active Directory Users and Computers snap-in. 2. In the left pane right-click on the domain and select Find. 3. Type the name of the user and click Find Now. 4. In the Search Results right-click on the user and select Rename. 5. You can modify the Full Name Last Name First Name Display Name User Principal Name logon name and SAM Account Name pre-Windows 2000 . 6. Click OK after you are done. Using a command-line interface The following command will rename the RDN of the user dsmove UserDN -newname NewUserName You can modify the UPN -upn First Name -fn Last Name -ln and Display Name display using the dsmod user command. For example the following command would change the user s UPN and last name dsmod user UserDN -upn NewUserUPN -ln NewUserLastName 181 Using VBScript This code renames the RDN of a user and the sAMAccountName attribute. ----- SCRIPT CONFIGURATION ------- strParentDN ParentDN . cn Users dc rallencorp dc com strUserOldName OlduserName . jsmith strUserNewName NewUserName . jim ----- END CONFIGURATION ---------- set objCont GetObject LDAP strParentDN LDAP cn strUserOldName strParentDN cn strUserNewName set objUser GetObject LDAP cn strUserNewName strParentDN sAMAccountName strUserNewName .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.