Lusrmgr.exe Portable

# Export all local users and groups $output = @() Get-LocalUser | ForEach-Object $output += [PSCustomObject]@ Where-Object (Get-LocalGroupMember -Name $_.Name).Name -contains $_.Name ).Name -join ", "

When a user is locked out due to too many bad password attempts (policed by the "Account Lockout Policy"), lusrmgr.exe is the primary interface to view the attribute. lusrmgr.exe

# Add to group Add-LocalGroupMember -Group $GroupName -Member $UserName # Export all local users and groups $output