Product: PowerShell Universal
Version: 4.1.5
Hi,
I need to make a table with for our users, to allow them to reset their own test accounts.
They need to be able to see the Password Last Set attribute, but it shows up as zulu time instead of the normal time.
How can i convert it to either the timezone the client is running in, or that the PSU server is running in?
$foo = Get-ADUser -Filter "SamAccountName -eq '$LocalUser'" -Properties DisplayName, PasswordLastSet
$LocalUserObjects += [PSCustomObject]@{
SamAccountName = $foo.SamAccountName
DisplayName = $foo.DisplayName
PasswordLastSet = $foo.PasswordLastSet
}