I'm using Powershell to export users to a CSV. Everything works fine but I would like to add commands for Live@edu to each line for import. The text I would like to add is "Add,Mailbox," before each line. Can this be done before the export-csv? Thanks in advance.
Here is the export code:
$CSV = @()
get-qaduser -searchroot 'OU=Test Live,DC=domain,DC=edu' -sizelimit 0 | foreach-object {
$attributes = get-qaduser $_ | Select-Object Name,Mail,givenName,sn,displayName
$CSV += $attributes
}
$CSV | export-csv -path "c:\test.csv" -encoding unicode -notypeinformation