tag:blogger.com,1999:blog-8229131257128040189.post1725895424065831496..comments2023-04-11T11:36:03.057+01:00Comments on Think Big - with Powershell: Cleanup DNS SRV records - Active DirectoryTompahttp://www.blogger.com/profile/00462564333522996562noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8229131257128040189.post-84872039672577646112019-02-05T12:20:34.297+00:002019-02-05T12:20:34.297+00:00this is because script incorrectly forms commands ...this is because script incorrectly forms commands for records under _msdcs.FQDN zone adding _msdcs to record. i.e. in this case records is in _msdcs.YLOPPE.MSOAAE.targ.NET zone and correct command is:<br />dnscmd co1ylpads002 /recorddelete _msdcs.YLOPPE.MSOAAE.targ.NET _kerberos._tcp.CO1._sites.dc SRV 0 100 88 co1ylpadds004.yloppe.msoaae.targ.net<br /><br />if deleting hundreds of records nice to add /f too else you are asked Yes/No for each record.<br /><br />Anyway good script, saved me tons of time. Thanks.DariusLhttps://www.blogger.com/profile/16779940328346753804noreply@blogger.comtag:blogger.com,1999:blog-8229131257128040189.post-40837573991692200342013-06-20T22:12:08.680+01:002013-06-20T22:12:08.680+01:00This error mean the record you are trying to delet...This error mean the record you are trying to delete is not present in the zone. Check it with either nslookup or with dnsmgmt.msc to see if it's there.Tompahttps://www.blogger.com/profile/00462564333522996562noreply@blogger.comtag:blogger.com,1999:blog-8229131257128040189.post-45709290047297434282013-06-10T00:15:11.515+01:002013-06-10T00:15:11.515+01:00thanks for posting this script it is life saver
ho...thanks for posting this script it is life saver<br />how ever i get this error whn i try to delet the srv record<br /><br />dnscmd co1ylpads002 /recorddelete YLOPPE.MSOAAE.targ.NET _kerberos._tcp.CO1._sites.dc._msdcs SRV 0 100 88 co1ylpadds004.yloppe.msoaae.targ.net.<br /><br />Command failed: DNS_ERROR_NAME_DOES_NOT_EXIST 9714 0x25F2<br />Shivarockshttps://www.blogger.com/profile/15385235389921895275noreply@blogger.com