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

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...