When i try with below command the output is getting overwrriten. Please let me know how to avoid it.
The input file contains multiple colum with employeeid coloum and i'm trying to pull user based on employeeid, i'm able to see complete report on powershell but Only the problme with exporting.
$a = Import-Csv C:\gp.csv | select -ExpandProperty employeeid
foreach ($b in $a)
{Get-ADUser -filter { employeeid -eq $b } -Properties * | select DisplayName, samaccountname, employeeid |Export-Csv -Path C:\sl.csv -NoTypeInformation}