How to convert Int32 Timestamp for DNS Resource Record
hello,
id see dns 'a' resource record timestamp in same form displayed in dns console when browse 'a' record, mm/dd/yyyy hours:minutes:seconds am/pm. when run following list rrs zone, timestamp in int32 format. how convert wmi timestamp int32 value form i've mentioned above?
get-wmiobject -computer prod1 -namespace "root\microsoftdns" -class "microsoftdns_atype" `
-filter "containername="myprodzone" , timestamp<>0"
thanks help! sdedot
get-wmiobject -computer prod1 -namespace "root\microsoftdns" -class "microsoftdns_atype" -filter "containername='myprodzone' , timestamp <> 0" | select ownername,@{n="date";e={([datetime]"1.1.1601").addhours($_.timestamp)}}
Windows Server > Windows PowerShell
Comments
Post a Comment