From the course: Complete Guide to PowerShell 7

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Handling other data formats

Handling other data formats

- [Instructor] Now, of course, what's important to understand really about PowerShell is that we'll be retrieving data the majority of the time. So I already have some data here, and I'm going to use Import-Csv to import the CSV data. So I have a file here, and when I click on $data here and just run the selection, you can see it's just a bunch of names and a bunch of addresses, just in a standard format. Now, if I wanted to write CSV, then, of course, I can export the data and put it back into a different file. So let me say Export-Csv, run that out, and then, of course, I then get another file that has the output of that, with no type information. Now, of course, we can do conversions on the fly. So, let's imagine that we're taking .JSON structure here. So let me just say $data, Run Selection, and then let's have a look at this selection here. This is going to be a different format. So, this is going to be our PowerShell object structure, but if I actually just say $data without the…

Contents