Skip to Main Content
Learn PowerShell Core 6.0
book

Learn PowerShell Core 6.0

by David das Neves, Jan-Hendrik Peters
July 2018
Beginner content levelBeginner
552 pages
13h 18m
English
Packt Publishing
Content preview from Learn PowerShell Core 6.0

XML

The next file type that you must know and need to learn to work with is Extensible Markup Language (XML). It can be used for configuration and data storage. We will start with an example of storing and loading configuration data:

#XMLConfigFile$XMLContent = @'<?xml version="1.0" standalone="yes"?><Config>        <TargetCollectionDefault>Windows10_1</TargetCollectionDefault>    <TargetCollection>        <Collection company_id = "A">Windows10_1_A</Collection>        <Collection company_id = "B">Windows10_12</Collection>        <Collection company_id = "C">Windows10_1_B</Collection></TargetCollection><ADLocations><Mandant Name="School" Nummer="1" UserName="Guest" OrgName="School" OSDVersion="Win7" Domain="sl1.contoso.net" DomainDC="DC=sl1,DC=contoso,DC=net"></Mandant> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PowerShell and WMI

PowerShell and WMI

Richard Siddaway

Publisher Resources

ISBN: 9781788838986Supplemental Content