TAILIEUCHUNG - Active Directory Cookbook for windows server 2003- P42

Active Directory Cookbook for windows server 2003- P42: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. | dnscmd del recordadd wins01 A To delete a resource record use the following command dnscmd DNSServerName recorddelete ZoneName NodeName RecordType RRData The following command deletes an A record in the zone dnscmd dcl recorddelete winsOl A Using VBScript This code shows how to add an A record and PTR record using the DNS WMI Provider ------ SCRIPT CONFIGURATION ------ strForwardRRAdd . IN A strReverseRRAdd IN PTR strForwardDomain strReverseDomain . ------ END CONFIGURATION --------- set objDNS GetObject winMgmts root MicrosoftDNS set objRR MicrosoftDNS ResourceRecord set objDNSServer MicrosoftDNS . Create the A record strNull strForwardDomain strForwardRRAdd objOutParam set objRR2 objOutParam Created Record Create the PTR record strNull strReverseDomain strReverseRRAdd objOutParam set objRR2 objOutParam Created Record This code shows how to delete an A and PTR record for the record I created in the previous example. strHostName . set objDNS GetObject winMgmts root MicrosoftDNS set objDNSServer MicrosoftDNS . set objRRs select from MicrosoftDNS ResourceRecord where OwnerName strHostName Or RecordData strHostName if 1 then 421 No matches found for strHostName else for each objRR in objRRs Deleted next end if Discussion Using a graphical user interface The DNS Management snap-in is good for creating a small number of records but if you need to add or delete more than a

Đã 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.