Import-Csv
SafeRead CSV as objects
Import-Csv <file.csv>
Loads CSV rows as objects addressable by column — the entry point for roster-driven automation.
Examples
Import-Csv users.csv | % { New-ADUser -Name $_.name }Bulk-create from a roster
Syntax
Import-Csv <path> [-Encoding UTF8] [-Delimiter c]
Before you run it
Reading is safe; the pipeline may not be.
Related commands
- Export-CsvExport to CSV
- ForEach-ObjectProcess each item
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store