Good Morning,
I am trying to get a powershell script to output usernames and allowed logon times that is useable. I can get an output but the time/date is in system.byte. This is what I am using:
Get-ADUser -filter * -properties LogonHours | export-csv -path (file path)
It spits out a CSV no problem but the logon data is in system.byte. That is my question...What do I need to do to convert it to days and times?