Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 427

PowerShell Studio • AccountExpirationDate is returned in american format

$
0
0
Product: PowerShell Studio 2024 (64 Bit)
Build: v5.8.237
OS: Windows 10.0.19045
PS Version(s): 5.1.19041.1

$UserDetails = Get-ADUser -Identity $UserID -Properties * -Credential $Credential
$AccExpire = $UserDetails.AccountExpirationDate

the $AccExpire is returned as 1/04/2024 instead of 4/01/2024 is only happens in the form
If I rune the same command in the console I get 4/01/2024

Statistics: Posted by dcptechnicalsupport — Mon Feb 12, 2024 11:46 pm



Viewing all articles
Browse latest Browse all 427

Trending Articles