Hello All
here a strange thing :
when you're looking for the account expiration date for an AD account with powershell like :
Get-ADUser -identity "user" -Properties * | select Displayname, EmailAddress, Company, Office ,AccountExpirationDate
the result is : AccountExpirationDate : dd-MM-YYYYY 16/06/2021 00:00:00
when i send this information by mail using Sendmail-message :
Body' = "Account of : $($userobj.Displayname) $($userobj.Company)<BR> $($userobj.office) is Expiring on $($userobj.AccountExpirationDate) "
in the mail body AccountExpirationDate is : MM-dd-YYYY : is Expiring on 06/16/2021 00:00:00
devices, servers, MS tenant all are in western EU format : dd-MM-YYYY
is anyone has an idea it will be very helpfull
thank you for your help
BR
Eli