From the course: PowerShell: Scripting for Server Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Work with XML and CliXml files

Work with XML and CliXml files - Server Tutorial

From the course: PowerShell: Scripting for Server Administration

Start my 1-month free trial

Work with XML and CliXml files

- [Instructor] We began the section on external data files by considering basic text files. These are single column lists. And when we considered our user account import and export project, all they could offer us was a simple list of user names. CSV files added another dimension, because they allowed us to create a flat database, or a table of information with multiple fields that could hold information about our different records. In our case, different users accounts that needed to be ported over. XML files add one more dimension to the information that we can store in a file. This expandability comes in two different ways. You're allowed to have a field with varying numbers of entries. Instead of simply being populated or empty, a field can have zero, one or dozens of entries. You can't do that with a CSV file because you have no way to separate the entries. Consider the group memberships of a user account in an account export file. If a user is a member of multiple groups in your…

Contents