When i try do PS script to output first name and second name users blocked in my AD
$WHO= Search-ADAccount -Server "MYDOMAIN" -SearchScope Subtree -SearchBase "OU=BASE,OU=USERS,OU=COMPANY,DC=DOMAIN,DC=CONTROL" -LockedOut | Select-Object Name
$KTO |Add-Content -Path {PATH FILE.CSV}
Always result is
@{Name=LAST NAME, NAME}
EX.
@{NAME=NOWAK,ADAM}
any help to remove begining of file ?
I had tried remove first 6 strings of that but not work