I'm busy building a Powershell script that will report on accounts that are soon to expire, where it collects the usernames and emails the managers.
All of the script is built, however I'm having a couple of issues where the dates are being converted to different values to what I'm expecting.
My understanding is that it gets converted from UTC/FileTime to local time, however, we are spread across NZ and AU, so a few different time zones. Therefore the time that my colleague in Sydney puts in, is 2 hours different to the one I entered, despite being the same value in AD.
Therefore, 28th February actually shows as the 1st March when pulled using powershell and converted.
Aside from using a query which will filter results such as "if 2 hours a head of time, move it back 2 hours", is there any way to fix/work around the issue?