I have this little bit of script that i am building and i need it to connect to a managed unit and return the UPN of the accounts in there. It does this but the output is wrong.
#Quest Active Roles Connect
Connect-QADService -Service "SERVER-HERE" -Proxy
$MULeavers = "MANAGED-UNIT-DN-HERE"
Get-QADUser -proxy -SearchRoot $MULeavers | Select-object UserPrincipalName
When run it outputs the following
when all i need is
Any ideas how i can get around this?