Working with XML Data in PowerShell

PowerShell is the most popular scripting language for IT Professionals in the Microsoft ecosystem. This course will teach you how to use XML files both as input for your PowerShell scripts, as well as an output from your PowerShell scripts.
Course info
Rating
(21)
Level
Beginner
Updated
Sep 8, 2017
Duration
1h 8m
Table of contents
Description
Course info
Rating
(21)
Level
Beginner
Updated
Sep 8, 2017
Duration
1h 8m
Description

PowerShell is an awesome tool, and as an IT pro or a Developper you probably want to use its powerful automation potential to automate your own tasks. To efficiently automate processes, you'll need to use input files, because it's not really automation if you need to give it a manual input for every single process you want to run. In this course, Working with XML Data in PowerShell, you'll learn how to work with XML files in your PowerShell scripts. First, you'll discover what XML files are, their synthax, and why/when you should use them. Next, you'll explore how to get information with PowerShell and output it to a XML file. Finally, you'll learn how to use XML files as input files for your PowerShell scripts. When you're finished with this course, you'll have the skills and knowledge of PowerShell needed to work with XML data in PowerShell.

About the author
About the author

Vlad is a SharePoint and Office 365 Consultant specializing in SharePoint and SharePoint Online deployments as well as hybrid scenarios. As a Pluralsight Author, Microsoft Certified Trainer, and recognized international speaker, Vlad has helped thousands of users and IT Pros across the globe to better understand and to get the most out of SharePoint. Vlad is also a Microsoft Most Valuable Professional (MVP) in SharePoint since 2013 and has his own blog at www.absolute-sharepoint.com and he often shares his knowledge by speaking at local conferences and community events. Vlad also blogs at CMSWire as well as Computerworld and is often featured in other Microsoft sites such as Redmond Channel Partner. In Addition, Vlad is the recipient of the "Top 25 Office 365 Influencers" award, showcasing him as one of the most influential Office 365 specialists in 2015 demonstrating his expertise and passion for Microsoft's shift towards the cloud in the past years.

More from the author
Microsoft 365 Security Concepts
Beginner
1h 3m
Jul 10, 2019
Microsoft 365 Services and Concepts
Beginner
1h 26m
Jun 6, 2019
More courses by Vlad Catrinescu
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello everyone, my name is Vlad Catrinescu, and welcome to my course, Working with XML Data in PowerShell. I'm a Microsoft MVP and independent consultant from Montreal, Canada. When automating tasks with PowerShell, you need to use input files, because well, it's not really automating if you need to give it information for every small task. One of the popular input files for PowerShell is XML, short for Extensible Markup Language. In this course, we are going to learn how to use XML files as both input files for our PowerShell scripts, as well as output information from our PowerShell scripts. Some of the major topics that we'll cover include an introduction to the XML file format, how to export information from PowerShell to XML, and how to use XML files as input files for our PowerShell scripts. By the end of the course, you'll know how to handle XML files from your PowerShell scripts, and use them as both input and output files. Before beginning this course, you should be familiar with the basics in PowerShell, and that's about it. From here, you should feel comfortable diving into other PowerShell topics with courses such as Working With CSV Data in PowerShell, Accessing SQL Server Databases from PowerShell, and Reporting with PowerShell HTML and Enhanced HTML from PowerShell. I hope you'll join me on this journey to learn PowerShell with the Working with XML Data in PowerShell course at Pluralsight.

Exporting Information to XML
Hello, and welcome to this course on working with XML Data in PowerShell. My name is Vlad Catrinescu, and I'll be your instructor for this course. In this module, we'll learn how to export information to XML. We will first start with the basics of exporting to XML, and learn how to do it, as well as what options we can configure to get the output that we want. By using PowerShell to export information to XML, you can use the power of PowerShell to get information from your systems and output them to XML either to transfer data or to create reports. After we look at the basics, we will then look a real-life example, which will be how to output the machine IP address, as well as the type of the address to XML. This way, not only you'll know the theory, but we'll be able to cover a real-life example when exporting stuff from PowerShell to XML would become useful.

Importing Information from XML
Hello, and welcome to this course on working with XML Data in PowerShell. My name is Vlad Catrinescu, and I will be your instructor for this course. In this module, we will learn how to import information from XML and use it in our PowerShell scripts. This will come in useful when we want to read XML files produced by other PowerShell scripts, or maybe even by other systems and want to automate things in PowerShell based on those input files. We will first start by covering the basics of importing from XML files, and then look at some awesome real-life examples on how you can apply what we have learned in Exchange, as well as SharePoint.