Answers for "powershell get samaccountname from first and last name"

0

powershell get samaccountname from first and last name

$usernames = Import-Csv "filepath.csv" -Header GivenName,Surname -Delimiter "," | ForEach {
  Get-ADUser -Filter {GivenName -like $_.GivenName -and Surname -like $_.Surname} | Select-Object -ExpandProperty sAMaccountName 
}
Posted by: Guest on July-19-2020

Code answers related to "powershell get samaccountname from first and last name"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language