1 day date difference between gui and attribute

Ask your Windows 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.
Locked
User avatar
IanUoY
Posts: 76
Joined: Wed Jul 31, 2013 2:09 am

1 day date difference between gui and attribute

Post by IanUoY » Tue Apr 23, 2019 4:17 am

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 824 times
aed1.PNG
aed1.PNG (2.56 KiB) Viewed 824 times

User avatar
IanUoY
Posts: 76
Joined: Wed Jul 31, 2013 2:09 am

Re: 1 day date difference between gui and attribute

Post by IanUoY » Tue Apr 23, 2019 4:20 am

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

Hmm wish attributes accurately reflected GUI.

User avatar
mxtrinidad
Site Admin
Posts: 368
Joined: Sun Mar 03, 2013 12:42 pm

Re: 1 day date difference between gui and attribute

Post by mxtrinidad » Tue Apr 23, 2019 8:32 am

The GUI will show the day before it expired.
:)

Locked