I have a byte array with two values: 07 and DE (in hex).
What I need to do is somehow concatenate the 07DE and get the decimal value from that hex value. In this case, it is 2014.
My code:
# This line gives 11 bytes worth of information
[Byte[]] $hexbyte2 = $obj.OIDValueB
# All I need are the first two bytes (the values in this case are 07 and DE in HEX)
[Byte[]] $year = $hexbyte2[0], $hexbyte2[1]
How do I combined these to make 07DE and convert that to an int to get 2014?