Manager directreport report in Powershell


Get-ADUser -Identity yogesh -Properties directreports | Select-Object -ExpandProperty directreports | Get-ADUser -Properties mail | Select-Object SamAccountName, mail

%d bloggers like this: