Hey Community,
Ran into an odd behavior when utilizing the SerializeValues switch for Get-QADUser.
Whenever it is used in a query that includes an DateTime values, it reformats it and changes the value by an hour or two in the past.
Example.
Get-QADUser -proxy mydomain\User1 -DontUseDefaultIncludedProperties -IncludedProperties edsvaACDeprovisionDate,whencreated | select edsvaACDeprovisionDate,whencreated
edsvaacdeprovisiondate whencreated
---------------------- -----------
20/03/2020 1:00:00 19/05/2019 11:00:47
Get-QADUser -proxy mydomain\User1 -DontUseDefaultIncludedProperties -SerializeValues -IncludedProperties edsvaACDeprovisionDate,whencreated | select edsvaACDeprovisionDate,whencreated
edsvaacdeprovisiondate whencreated
---------------------- -----------
03/20/2020 00:00:00 05/19/2019 09:00:47
Is this expected behavior for this switch?
I honestly don't mind it in the task I am performing right now as a 1 -2 hour difference wont be a big deal but where I also need it for another task to perform, the 1-2 hours difference can accidentally deprovision a users account before the end of their shift on their last day of handover.
I would rather keep using the switch as it the speed increase in larger queries is a must have.
Thanks,
Clay