1 day date difference between gui and attribute

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 4 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
IanUoY
Posts: 91
Last visit: Wed Sep 20, 2023 2:44 am

1 day date difference between gui and attribute

Post by IanUoY »

Hi there, I'm just using powershell to update the accountexpirationdate. If I query the attribute or view using ADUC, it's set correctly, however, when I view on the Account tab, no matter what I set it to, it always displays a day earlier.

See screenshots below. Any clues?

Ian
aed2.PNG
aed2.PNG (2.7 KiB) Viewed 1826 times
aed1.PNG
aed1.PNG (2.56 KiB) Viewed 1826 times
User avatar
IanUoY
Posts: 91
Last visit: Wed Sep 20, 2023 2:44 am

Re: 1 day date difference between gui and attribute

Post by IanUoY »

Ah, presumably because in GUI, it's "End of"

Hmm wish attributes accurately reflected GUI.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: 1 day date difference between gui and attribute

Post by mxtrinidad »

The GUI will show the day before it expired.
:)
This topic is 4 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked