Question : how to script DNS records with timestamps

I need a script to list all dns records for the AD integrated zone  in MS 2003 environment with its record timestamps into a file

Answer : how to script DNS records with timestamps


Hey,

Can I make you use PowerShell?

It's here:

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx

That would allow you to run the code below. It can be sent to a CSV File by tacking "| Export-CSV SomeFile.csv" onto the end.

Chris
1:
2:
3:
4:
5:
6:
7:
8:
$ServerName = "DNSServer"
$ContainerName = "domainname.com"
 
Get-WMIObject -Computer $ServerName `
  -Namespace "root\MicrosoftDNS" -Class "MicrosoftDNS_AType" `
  -Filter "ContainerName='$ContainerName' AND TimeStamp<>0" `
 | Select-Object OwnerName, `
  @{n="TimeStamp";e={(Get-Date("01/01/1601")).AddHours($_.TimeStamp)}}
Random Solutions  
 
programming4us programming4us