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> ...

Get Learn PowerShell Core 6.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.