Локальные пользователи и группы

Get-LocalUser -Name '*' | 
Select-Object ObjectClass, 
              Name, 
              PasswordLastSet, 
              PasswordExpires, 
              PasswordChangeableDate | 
Format-Table -AutoSize

Это можно сделать только посмотреть время создания папок пофиля

Function Show-LocalUserCreationAttributes 
{
    [cmdletbinding(SupportsShouldProcess)]
    [Alias('sluca')]
    Param ()
 
    Get-LocalUser -Name '*' | 
    ForEach {
        [pscustomobject]@{
            ObjectClass             = $PSItem.ObjectClass
            UserName                = $PSItem.Name
            PasswordLastSet         = $PSItem.PasswordLastSet
            PasswordExpires         = $PSItem.PasswordExpires
            PasswordChangeableDate  = $PSItem.PasswordChangeableDate 
            UserProfilePath         = (Test-Path -Path "C:\Users\$($PSItem.Name)")
        }
    } 
}
 
Show-LocalUserCreationAttributes   | 
Format-Table -AutoSize

How to Set Time Limits for a Regular Account in Windows 10

net user username /time:M-F,7am-10am;M-F,2pm-5pm;F,8pm-10pm;Sa-Su,7am-10am;Sa-Su,2pm-5pm;Sa-Su,8pm-10pm