Trying to list only local administrator accounts that are enabled on windows workstations.
Have this code so far but I am running into issues beyond this point trying to compare if the active user is an administrator.
$enabledUsers = (Get-LocalUser | Select * | sort Name, FullName, Enabled) | where-object enabled -eq $true
$enabledUsers | Select Name, Fullname