Jacks Wacks

Jacks Wacks

  • NA
  • 4
  • 18.5k

Time conversion Active Directory

Dec 17 2010 8:17 AM
Hi

I get the following data from AD

0,0,0,0,0,0,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0,0,15,255,255,255,255,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

This is a byte array, it is the time login of the day from monday to friday

Using powershell i get this

Mon.9:00 AM-Mon.7:00 PM
Tue.9:00 AM-Tue.7:00 PM
Wed.9:00 AM-Wed.7:00 PM
Thu.9:00 AM-Thu.7:00 PM
Fri.9:00 AM-Fri.7:00 PM


can someone help me convert the byte array to the above.

TIA
Jacks


Answers (2)