Link to home
Start Free TrialLog in
Avatar of MJB2011
MJB2011

asked on

Powershell - Export to CSV not working

Hi all,

I dont use PS that often but need to drag some data out of AD. Can you tell me where Im going wrong. Im trying to write to CSV but I want the output  in individual columns. Trouble is this command dumps everything in one column.

 Get-ADUser -filter * -properties scriptpath, homedrive, homedirectory | ft Name, scriptpath, homedrive, homedirectory > C:\temp\users.csv
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial