Đang chuẩn bị liên kết để tải về tài liệu:
Active Directory Cookbook for windows server 2003- P53

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Active Directory Cookbook for windows server 2003- P53: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. | First find the NTDS Settings object for the server strBase LDAP cn Sites objRootDSE.Get ConfigurationNamingContext strFilter objectcategory server cn strServer strAttrs cn distinguishedName strScope subtree set objConn CreateObject ADODB.Connection objConn.Provider ADsDSOObject objConn.Open Active Directory Provider set objRS objConn.Execute strBase strFilter strAttrs strScope if objRS.RecordCount 1 then WScript.Echo Did not find a match for server strServer WScript.Quit else objRS.MoveLast strServerDN cn NTDS Settings objRS.Fields distinguishedName .Value Make sure the NTDS Settings object actually exists set objNTDSDSA GetObject LDAP strServerDN Wscript.Echo Found server WScript.Echo strServerDN Wscript.Echo end if Now need to find the crossRef object for the application partition strBase LDAP cn Partitions objRootDSE.Get ConfigurationNamingContext strFilter objectcategory crossRef dnsRoot strAppPart strAttrs cn distinguishedName strScope onelevel set objRS objConn.Execute strBase strFilter strAttrs strScope if objRS.RecordCount 1 then WScript.Echo Did not find a match for application partition strAppPart WScript.Quit else objRS.MoveLast set objAppPart GetObject LDAP objRS.Fields distinguishedName .Value Wscript.Echo Found app partition WScript.Echo objRS.Fields distinguishedName .Value WScript.Echo end if Lastly either add or remove the replica server if boolAdd TRUE then objAppPart.PutEx ADS_PROPERTY_APPEND msDS-NC-Replica-Locations Array strServerDN objAppPart.SetInfo WScript.Echo Added server to replica set else 531 objAppPart.PutEx ADS_PROPERTY_DELETE msDS-NC-Replica-Locations Array strServerDN objAppPart.SetInfo WScript.Echo Removed server from replica set end if 17.3.3 Discussion When you initially create an application partition there is only one domain controller that hosts the application partition namely the one you created the application partition on. You can add any other domain controllers in the forest as replica servers assuming the domain .

TÀI LIỆU LIÊN QUAN
crossorigin="anonymous">
Đã 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.