HI,
I'm not great with powershell but it's what I know best so I'm trying to use it to do the following:
I need to extract data like below from AD:
$users = (import-csv "$path\users.csv").users
Foreach ($user in $users){
$Dname = Get-ADUser $user -properties TelephoneNumber| select TelephoneNumber
$Email = Get-ADUser $user -properties UserPrincipalName | select UserPrincipalName
}
and append it to an adjacent cell in an existing csv file(i.e specify the column it writes to and only write on the same row as the matching username in users.csv)
any assistance with this would be appreciated
regards,
Ian