Re: Convert Hex Value to Date from Binary Reg Key

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks for that, makes more sense now.

The only thing is that the month is one off. The app (symantec AV) displays
that date as 3/25/2005, but we read that as 2/25/2005 I've checked a number
of servers now and the date is always one off.

I have fixed it in my code by just adding 1 to the month each time, but i'd
still liek to know why it's a month out.

Any ideas?

"Al Dunbar [MS-MVP]" wrote:

>
> "RobT" <r_tesoriero@xxxxxxxxxxxx(donotspam)> wrote in message
> news:36319489-D2C0-484E-880C-5B665A1B24B4@xxxxxxxxxxxxxxxx
> > Hi,
> >
> > I am trying to get a date value from the registry that is stored in hex in
> a
> > binary reg key. The key looks like this.
> >
> > [HKEY_LOCAL_MACHINE\SOFTWARE\intel\landesk\virusprotect6\currentversion]
> > "PatternFileDate"=hex:23,02,19,00,00,00,00,00
> >
> > When I use WMI to query to the binary registry value it returns an array
> of
> > bytes that looks like this:
> >
> > - arrValues {...} Array of Variant
> > (0) 35 Byte
> > (1) 2 Byte
> > (2) 25 Byte
> > (3) 0 Byte
> > (4) 0 Byte
> > (5) 0 Byte
> > (6) 0 Byte
> > (7) 0 Byte
> >
> > What do I do with they array now? How can I get the date from this array?
>
> Good question. Do you know what date this value actually represents (i.e. is
> it displayed in human readable form by the software)? My quess would be Feb
> 25, 2005 (2005 = 1970 + 35), but without knowing anything else about it that
> is only a guess.
>
> /Al
>
>
>
.



Relevant Pages

  • Re: Convert Hex Value to Date from Binary Reg Key
    ... Why Symantec decided that, I'll ... >>> binary reg key. ... >>> When I use WMI to query to the binary registry value it returns an ... >>> What do I do with they array now? ...
    (microsoft.public.windows.server.scripting)
  • Problem with Intra Array Communication
    ... two servers in the Server tab of the Array Configuration are correct. ... Array NICs, defined it as Internal. ... I ensured that the checkbox in the system policy for Array Communication is ...
    (microsoft.public.isa.enterprise)
  • multiple attached storage
    ... The old configuration is one running, ... I have a pair of new SunFire T2000, new loadbalancer, new firewall. ... I have quotes for different fibre channel arrays and a scsi array. ... What I want to do is to have one filesystem mounted on both servers, ...
    (comp.sys.sun.hardware)
  • SUMMARY: (Partial) Two Unrelated Questions - C Compiler for 5.10 & D2 Array
    ... especially John Stoffel and D. Ross-Smith ... the D2 Array I was able to see the D2's with both servers by using ... I have a pair of V240 servers and a pair of D2 array. ... single bus mode on one bus. ...
    (SunManagers)
  • Re: ISA 2006 web proxy scenario
    ... The 4 servers are in 2 separate DMZ's - see below. ... internal array and having all traffic handled by the external array. ... You now have a Back-to-Back DMZ sitting between the ISA Array and the PIX. ... Microsoft Internet Security & Acceleration Server: ...
    (microsoft.public.isa)