You have been asked, “Please remove the host record for these 15 computers, plus their associated PTR records”. It isn’t a difficult task, but it can be time consuming, especially if you have a large DNS database. The in-addr.arpa bit can be annoying to do over and over again. When I first decided to automate this task, I went looking to see who had done something similar before, and found https://rcmtech.wordpress.com/2014/02/26/get-and-delete-dns-a-and-ptr-records-via-powershell/. My code, Remove-DNSRecord.ps1, is based on his, and extends it by searching all zones, and by creating an advanced function. The script relies on the PowerShell DNSServer Module, which is available on Server 2008 and later.
All the scripts are saved as .txt files. Newer files have a "View Script" button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use "Save Target As". Rename file from Name_ext.txt to Name.ext.
To see a full post after searching, please click on the title.
PowerShell Scripts were written with Version 3 or 4.
https connections are supported.
All new users accounts must be approved, as are comments. Please be patient. It is pretty easy to figure out my email address from the scripts, and you are welcome to contact me that way.
Top Posts & Pages
- Script to change SA password
- Get the Parent OU for an AD Object
- Scriptomatic on Windows 7 Solved
- Create Import file for Remote Desktop Connection Manager 2.7
- Fixing SCCM 1603 Errors
- Remote Ping using WMI
- Get Distinguished Name of Many computers in PowerShell (Revised)
- LDAP Ping
- Programatically Uninstall Outlook Patch KB2412171
- Who Joined Computer Account to AD Domain