none
Parse XML file RRS feed

  • Question

  • Hi,

    I'm new to PS and I'm trying to parse XML file that contains full config of DPM protection. The structure of XML is not like DB.

    I need just some of the elements and attributes and not all of them.

    Can someone provides me some example code?

    Regards,

    Grega


    <?xml version="1.0" encoding="utf-8"?>
    <DPMConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" scriptversion="v0.94">
      <Z0000013 Domain="KDRM.si" Dpmservername="Z0000013" DpmMajorVersion="4" DpmMinorVersion="2" DpmBuild="1205">
        <GLOBALS IsNetworkChecksumRequired="True" TruncateSharePointDbLogs="True" LibraryRefreshInterval="0" ExchangeSCRProtection="False" AllowLocalDataProtection="True" TapeExpiryTolerance="17" />
        <REGISTRY>
          <TapeSize Path="HKLM:\Software\Microsoft\Microsoft Data Protection Manager\Agent\" Value="0" />
        </REGISTRY>
        <REPLICALIST>
          <AR0 PhysicalReplicaId="4555b8f1-27ef-4b73-8e79-53f62d2229dd" ReplicaId="4555b8f1-27ef-4b73-8e79-53f62d2229dd" DataSourceId="a54e76e1-3f0b-43ae-bcf2-5e5e48dee875" />
        </REPLICALIST>
        <LIBRARYLIST />
        <Groups Count="4">
          <PG0 GroupName="Aplikacijski strežniki" ScheduleOffset="0" PGPRotectionType="DiskToDisk" OnsiteFrequency="Daily" OffsiteFrequency="Daily" Performance="On-wire compression: Disabled | Consistency check: Automatic when replica becomes inconsistent. | Express Full Backup-22:00 pon, tor, sre, čet, pet" ReplicateBeforeShadowCopy="True" IsTapeShortTerm="False" IsTapeLongTerm="False" IsDiskShortTerm="True" IsTapeEnabled="False" AutoHealProperty="3" IsAutoCCenabled="True" IsAutoGrowenabled="True" IsClientDatasourcePresent="False" IsCloudLongterm="False" IsCloudProtectable="True" IsCollocated="False" IsPGCollocateable="False" RerunCancelledJobs="False" TotalDPMOnlineReplicaSize="0" TotalDiskReplicaSize="1383795261440">
            <DISKINTENT Compression="False" Encryption="False" />
            <ARCHIVEINTENT />
            <RETENTIONPOLICY />
            <SHORTTERMPOLICY AllowIncrementals="True" IncrementalSet="True" Frequency="Daily" Interval="0" Mode="True">
              <RECOVERYRANGE Range="31" Unit="Days" />
              <SCHEDULES>
                <ShadowCopy JobType="ShadowCopy" JobTypeString="Shadow copy" WeekDays="Mo,Tu,We,Th,Fr" TimesOfDay="22:04" />
                <FullReplicationForApplication JobType="FullReplicationForApplication" JobTypeString="Express full" WeekDays="Mo,Tu,We,Th,Fr" TimesOfDay="22:00" />
              </SCHEDULES>
            </SHORTTERMPOLICY>
            <LONGTERMPOLICY />
            <ONSITEGENERATOR Range="31" Unit="Days" />
            <OFFSITEGENERATOR />
            <ONSITERECOVERYRANGE Key="31" Value="Days" />
            <OFFSITERECOVERYRANGE Key="" Value="" />
            <PROTECTIONTOPTIONS ExcludeFileType="" RunEseUtilCC="True" ProtectionTopology="PT_CCR_PHYSICAL_NODE" PreferredServers="" EseUtiltype="" />
            <DATASOURCES Count="14">
              <DS0 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="z0000144.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="eb76d724-e216-4e9d-a6c1-a0e3ee42c63d" ReplicaSize="32212254720" RequiredReplicaSize="32212254720" ReplicaUsedSpace="22868582400" ShadowCopyAreaSize="11670650880" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS1 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="z0000158.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="ad095655-cc34-4c8f-998b-996656bd0ea9" ReplicaSize="32212254720" RequiredReplicaSize="32212254720" ReplicaUsedSpace="16257560576" ShadowCopyAreaSize="11670650880" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS2 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="z0000153.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="8c630448-b703-4f29-92b9-dfdd9239a10c" ReplicaSize="32212254720" RequiredReplicaSize="32212254720" ReplicaUsedSpace="22456201216" ShadowCopyAreaSize="33145487360" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS3 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000101.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="ce7437fe-210d-4be4-831e-c7d27b28bab7" ReplicaSize="107374182400" RequiredReplicaSize="107374182400" ReplicaUsedSpace="74021359616" ShadowCopyAreaSize="11670650880" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS4 Name="C:\" Logicalpath="C:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="zic05201.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="a6c9e089-00cb-47c4-a8f9-994f28a15bfd" ReplicaSize="19922944000" RequiredReplicaSize="19922944000" ReplicaUsedSpace="108953600" ShadowCopyAreaSize="4980736000" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="1">
                  <Child0 LogicalPath="C:\Program Files\CiscoSecure ACS v4.2\CSAuth\System Backups" Type="Folder" />
                </Childs>
                <ExcludedObjects Count="0" />
              </DS4>
              <DS5 Name="C:\" Logicalpath="C:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="zic05200.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="004e5127-97ca-4315-9106-96919a3d39d0" ReplicaSize="21212692480" RequiredReplicaSize="21212692480" ReplicaUsedSpace="108969984" ShadowCopyAreaSize="5190451200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="1">
                  <Child0 LogicalPath="C:\Program Files\CiscoSecure ACS v4.2\CSAuth\System Backups" Type="Folder" />
                </Childs>
                <ExcludedObjects Count="0" />
              </DS5>
              <DS6 Name="D:\" Logicalpath="D:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000101.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="9e61e4e5-66c2-4d6a-b0a9-91cc2cf9ec99" ReplicaSize="89087016960" RequiredReplicaSize="89087016960" ReplicaUsedSpace="57578393600" ShadowCopyAreaSize="16410214400" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="0" />
                <ExcludedObjects Count="0" />
              </DS6>
              <DS7 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000155.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="dea58748-fa8e-433d-bde9-48e5ab25277c" ReplicaSize="214748364800" RequiredReplicaSize="214748364800" ReplicaUsedSpace="190554365952" ShadowCopyAreaSize="33145487360" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS8 Name="D:\" Logicalpath="D:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000113.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="ebcddadf-e979-42ca-977a-12f21e3268bd" ReplicaSize="151477288960" RequiredReplicaSize="151477288960" ReplicaUsedSpace="59722477568" ShadowCopyAreaSize="26728202240" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="1">
                  <Child0 LogicalPath="D:\CSMBackup" Type="Folder" />
                </Childs>
                <ExcludedObjects Count="0" />
              </DS8>
              <DS9 Name="C:\" Logicalpath="C:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000127.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="6858604d-64e5-418c-8ad0-dfe33e82084f" ReplicaSize="18989711360" RequiredReplicaSize="18989711360" ReplicaUsedSpace="546488320" ShadowCopyAreaSize="4823449600" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="1">
                  <Child0 LogicalPath="C:\Repositories" Type="Folder" />
                </Childs>
                <ExcludedObjects Count="0" />
              </DS9>
              <DS10 Name="G:\" Logicalpath="G:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000101.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="5f90fe39-68d6-4d66-af5c-e2e0fedb5705" ReplicaSize="81663098880" RequiredReplicaSize="81663098880" ReplicaUsedSpace="56345542656" ShadowCopyAreaSize="15183380480" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="1">
                  <Child0 LogicalPath="G:\Java_razv" Type="Folder" />
                </Childs>
                <ExcludedObjects Count="0" />
              </DS10>
              <DS11 Name="D:\" Logicalpath="D:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000155.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="4c0376eb-c299-4387-8b14-fb852a610c2b" ReplicaSize="235950571520" RequiredReplicaSize="235950571520" ReplicaUsedSpace="157237641216" ShadowCopyAreaSize="40695234560" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="0" />
                <ExcludedObjects Count="0" />
              </DS11>
              <DS12 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="z0000152.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="7cc8a490-d138-496f-98c1-eabbced9949b" ReplicaSize="32212254720" RequiredReplicaSize="32212254720" ReplicaUsedSpace="24073703424" ShadowCopyAreaSize="11670650880" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS13 Name="D:\" Logicalpath="D:\" ProtectionGroupName="Aplikacijski strežniki" ProductionServerName="Z0000130.KDRM.si" ClusterName="" Type="Volume" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="704b8618-abdf-4d4a-a694-1aa64bf26d75" ReplicaSize="73672949760" RequiredReplicaSize="73672949760" ReplicaUsedSpace="44866084864" ShadowCopyAreaSize="13862174720" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False">
                <Childs Count="1">
                  <Child0 LogicalPath="D:\Vasco" Type="Folder" />
                </Childs>
                <ExcludedObjects Count="0" />
              </DS13>
            </DATASOURCES>
          </PG0>
          <PG1 GroupName="Domenski krmilniki bare metal" ScheduleOffset="0" PGPRotectionType="DiskToDisk" OnsiteFrequency="Daily" OffsiteFrequency="Daily" Performance="On-wire compression: Disabled | Consistency check: Automatic when replica becomes inconsistent. | Express Full Backup-20:00 pon, tor, sre, čet, pet" ReplicateBeforeShadowCopy="True" IsTapeShortTerm="False" IsTapeLongTerm="False" IsDiskShortTerm="True" IsTapeEnabled="False" AutoHealProperty="3" IsAutoCCenabled="True" IsAutoGrowenabled="True" IsClientDatasourcePresent="False" IsCloudLongterm="False" IsCloudProtectable="False" IsCollocated="False" IsPGCollocateable="False" RerunCancelledJobs="False" TotalDPMOnlineReplicaSize="0" TotalDiskReplicaSize="204126289920">
            <DISKINTENT Compression="False" Encryption="False" />
            <ARCHIVEINTENT />
            <RETENTIONPOLICY />
            <SHORTTERMPOLICY AllowIncrementals="False" IncrementalSet="False" Frequency="Daily" Interval="0" Mode="True">
              <RECOVERYRANGE Range="6" Unit="Days" />
              <SCHEDULES>
                <FullReplicationForApplication JobType="FullReplicationForApplication" JobTypeString="Express full" WeekDays="Mo,Tu,We,Th,Fr" TimesOfDay="20:00" />
              </SCHEDULES>
            </SHORTTERMPOLICY>
            <LONGTERMPOLICY />
            <ONSITEGENERATOR Range="6" Unit="Days" />
            <OFFSITEGENERATOR />
            <ONSITERECOVERYRANGE Key="6" Value="Days" />
            <OFFSITERECOVERYRANGE Key="" Value="" />
            <PROTECTIONTOPTIONS ExcludeFileType="" RunEseUtilCC="True" ProtectionTopology="PT_CCR_PHYSICAL_NODE" PreferredServers="" EseUtiltype="" />
            <DATASOURCES Count="3">
              <DS0 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Domenski krmilniki bare metal" ProductionServerName="Z0000099.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="4222b7dd-276d-490c-845d-7c5c17cf0b3b" ReplicaSize="32212254720" RequiredReplicaSize="32212254720" ReplicaUsedSpace="20509786112" ShadowCopyAreaSize="14355005440" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="5025058816" IsCollocated="False" />
              <DS1 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Domenski krmilniki bare metal" ProductionServerName="z0000098.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="10cdd897-7469-4ad6-aa66-9b2b51884a56" ReplicaSize="64424509440" RequiredReplicaSize="64424509440" ReplicaUsedSpace="49775321088" ShadowCopyAreaSize="35829841920" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS2 Name="System Protection" Logicalpath="Computer\System Protection" ProtectionGroupName="Domenski krmilniki bare metal" ProductionServerName="Z0000100.KDRM.si" ClusterName="" Type="System Protection" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="526ffd46-ba6b-4f99-b9ef-fb8e94808656" ReplicaSize="42949672960" RequiredReplicaSize="42949672960" ReplicaUsedSpace="19471671296" ShadowCopyAreaSize="14355005440" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
            </DATASOURCES>
          </PG1>
            <DISKINTENT Compression="False" Encryption="False" />
            <ARCHIVEINTENT />
            <RETENTIONPOLICY />
            <SHORTTERMPOLICY AllowIncrementals="True" IncrementalSet="True" Frequency="Daily" Interval="0" Mode="False">
              <RECOVERYRANGE Range="31" Unit="Days" />
              <SCHEDULES>
                <Replication JobType="Replication" JobTypeString="Synchronization" Frequency="240" />
                <FullReplicationForApplication JobType="FullReplicationForApplication" JobTypeString="Express full" WeekDays="Mo,Tu,We,Th,Fr" TimesOfDay="20:00" />
              </SCHEDULES>
            </SHORTTERMPOLICY>
            <LONGTERMPOLICY />
            <ONSITEGENERATOR Range="31" Unit="Days" />
            <OFFSITEGENERATOR />
            <ONSITERECOVERYRANGE Key="31" Value="Days" />
            <OFFSITERECOVERYRANGE Key="" Value="" />
            <PROTECTIONTOPTIONS ExcludeFileType="" RunEseUtilCC="True" ProtectionTopology="PT_CCR_PHYSICAL_NODE" PreferredServers="" EseUtiltype="" />
            <DATASOURCES Count="52">
              <DS0 Name="MSW_Auditing" Logicalpath="Z0000060\MSW_Auditing" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="f20dab1c-4751-40fd-b074-5bdf96da35ff" ReplicaSize="21474836480" RequiredReplicaSize="21474836480" ReplicaUsedSpace="12509298688" ShadowCopyAreaSize="32442941440" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS1 Name="MDTConfigDB" Logicalpath="Z0000060\SCCM2012\MDTConfigDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS2 Name="OperationsManagerDW" Logicalpath="Z0000060\SCOM\OperationsManagerDW" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="9548c09c-4f6f-4bb1-b5fc-7ea8eb25c06d" ReplicaSize="146737725440" RequiredReplicaSize="146737725440" ReplicaUsedSpace="121521750016" ShadowCopyAreaSize="275240714240" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS3 Name="model" Logicalpath="Z0000060\SCOM\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS4 Name="KDRM_AppApproval" Logicalpath="Z0000060\SCCM2012\KDRM_AppApproval" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS5 Name="ecampus-KDRM" Logicalpath="Z0000060\ecampus-KDRM" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS6 Name="KDRM_SIF" Logicalpath="Z0000060\SCCM2012\KDRM_SIF" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS7 Name="CM_R01" Logicalpath="Z0000060\SCCM2012\CM_R01" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="8d846265-e524-40b5-92e7-f8fca708874a" ReplicaSize="15183380480" RequiredReplicaSize="15183380480" ReplicaUsedSpace="12274991104" ShadowCopyAreaSize="29978787840" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS8 Name="ReportServer$ERWINTempDB" Logicalpath="Z0000060\ERWIN\ReportServer$ERWINTempDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS9 Name="PPOLJ" Logicalpath="Z0000060\PPO\PPOLJ" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS10 Name="TSSPICA" Logicalpath="Z0000060\TSSPICA" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS11 Name="KDRM_model_podatkov" Logicalpath="Z0000060\ERWIN_1\KDRM_model_podatkov" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="69cb9294-521d-40ee-ba3d-c7fd3a36096d" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8733728768" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS12 Name="master" Logicalpath="Z0000060\ERWIN_1\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS13 Name="model" Logicalpath="Z0000060\ERWIN\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS14 Name="msdb" Logicalpath="Z0000060\SCCM2012\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS15 Name="master" Logicalpath="Z0000060\SCOM\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS16 Name="msdb" Logicalpath="Z0000060\SCOM\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS17 Name="model" Logicalpath="Z0000060\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="f20dab1c-4751-40fd-b074-5bdf96da35ff" ReplicaSize="21474836480" RequiredReplicaSize="21474836480" ReplicaUsedSpace="12509298688" ShadowCopyAreaSize="32442941440" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS18 Name="ReportServer$WHATSUP" Logicalpath="Z0000060\WHATSUP\ReportServer$WHATSUP" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS19 Name="model" Logicalpath="Z0000060\SCCM2012\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS20 Name="KDRM_model_podatkov_R" Logicalpath="Z0000060\ERWIN\KDRM_model_podatkov_R" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS21 Name="KDRM_model_podatkov" Logicalpath="Z0000060\ERWIN\KDRM_model_podatkov" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS22 Name="master" Logicalpath="Z0000060\ERWIN\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS23 Name="model" Logicalpath="Z0000060\ERWIN_1\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS24 Name="master" Logicalpath="Z0000060\SCCM2012\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS25 Name="model" Logicalpath="Z0000060\WHATSUP\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS26 Name="NFArchive" Logicalpath="Z0000060\WHATSUP\NFArchive" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="16a4380e-5dca-4b25-ae64-0a303e5a05b6" ReplicaSize="22282240000" RequiredReplicaSize="22282240000" ReplicaUsedSpace="19833278464" ShadowCopyAreaSize="43222302720" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS27 Name="OperationsManagerAC" Logicalpath="Z0000060\SCOM\OperationsManagerAC" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS28 Name="Netflow" Logicalpath="Z0000060\WHATSUP\Netflow" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="f20dab1c-4751-40fd-b074-5bdf96da35ff" ReplicaSize="21474836480" RequiredReplicaSize="21474836480" ReplicaUsedSpace="12509298688" ShadowCopyAreaSize="32442941440" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS29 Name="KDRM_model_podatkov_2R" Logicalpath="Z0000060\ERWIN\KDRM_model_podatkov_2R" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS30 Name="WhatsUp" Logicalpath="Z0000060\WHATSUP\WhatsUp" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="bd905f1a-ba71-410a-8322-396914244530" ReplicaSize="109345505280" RequiredReplicaSize="109345505280" ReplicaUsedSpace="82489266176" ShadowCopyAreaSize="205961297920" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS31 Name="msdb" Logicalpath="Z0000060\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS32 Name="ReportServer" Logicalpath="Z0000060\ReportServer" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS33 Name="IMTP_pregledi" Logicalpath="Z0000060\IMTP_pregledi" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS34 Name="ReportServer" Logicalpath="Z0000060\SCOM\ReportServer" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS35 Name="master" Logicalpath="Z0000060\WHATSUP\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS36 Name="master" Logicalpath="Z0000060\PPO\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS37 Name="ReportServer_SCCM2012" Logicalpath="Z0000060\SCCM2012\ReportServer_SCCM2012" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS38 Name="ReportServer_SCCM2012TempDB" Logicalpath="Z0000060\SCCM2012\ReportServer_SCCM2012TempDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="93f7996f-bc3e-458f-b8ce-5692d43e083a" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8513601536" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS39 Name="model" Logicalpath="Z0000060\PPO\model" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS40 Name="ReportServerTempDB" Logicalpath="Z0000060\ReportServerTempDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS41 Name="OperationsManager" Logicalpath="Z0000060\SCOM\OperationsManager" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="4f10f311-4610-48d7-a74d-445b0b72306a" ReplicaSize="19618856960" RequiredReplicaSize="19618856960" ReplicaUsedSpace="15832944640" ShadowCopyAreaSize="38252052480" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="False" />
              <DS42 Name="msdb" Logicalpath="Z0000060\WHATSUP\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS43 Name="ReportServer$ERWIN" Logicalpath="Z0000060\ERWIN\ReportServer$ERWIN" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="True" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS44 Name="master" Logicalpath="Z0000060\master" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS45 Name="msdb" Logicalpath="Z0000060\ERWIN_1\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="69cb9294-521d-40ee-ba3d-c7fd3a36096d" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8733728768" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS46 Name="ReportServerTempDB" Logicalpath="Z0000060\SCOM\ReportServerTempDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="f20dab1c-4751-40fd-b074-5bdf96da35ff" ReplicaSize="21474836480" RequiredReplicaSize="21474836480" ReplicaUsedSpace="12509298688" ShadowCopyAreaSize="32442941440" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS47 Name="ReportServer$WHATSUPTempDB" Logicalpath="Z0000060\WHATSUP\ReportServer$WHATSUPTempDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS48 Name="msdb" Logicalpath="Z0000060\PPO\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS49 Name="msdb" Logicalpath="Z0000060\ERWIN\msdb" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS50 Name="SUSDB" Logicalpath="Z0000060\SCCM2012\SUSDB" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="69cb9294-521d-40ee-ba3d-c7fd3a36096d" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="8733728768" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
              <DS51 Name="KDRM_model_podatkov_test" Logicalpath="Z0000060\ERWIN\KDRM_model_podatkov_test" ProtectionGroupName="SQL" ProductionServerName="Z0000060.KDRM.si" ClusterName="" Type="SQL Server 2008 database" SupportsIncremental="False" NumberOfExcludedObjects="0" PhysicalReplicaId="68025266-7494-4c46-9a81-d0648add8b41" ReplicaSize="10737418240" RequiredReplicaSize="10737418240" ReplicaUsedSpace="5107798016" ShadowCopyAreaSize="21705523200" RequiredShadowCopyAreaSize="" ShadowCopyUsedSpace="0" IsCollocated="True" />
            </DATASOURCES>
          </PG2>
        </Groups>
      </Z0000013>
    </DPMConfig>
    

    • Edited by GRepar Tuesday, January 7, 2014 12:12 PM additional xml
    Tuesday, January 7, 2014 12:08 PM

Answers

  • Based on what I can see in your sample file, here's one way that you might get to that information:

    $xmlPath = 'C:\Path\To\YourXmlFile.xml'
    
    $xml = [xml](Get-Content -Path $xmlPath)
    
    $groupCount = $xml.DPMConfig.Z0000013.Groups.Count
    
    for ($g = 0; $g -lt $groupCount; $g++)
    {
        ''
        "Group $g"
    
        $xml.DPMConfig.Z0000013.Groups."PG$g".ShortTermPolicy.Schedules.ShadowCopy
        $xml.DPMConfig.Z0000013.Groups."PG$g".ShortTermPolicy.Schedules.FullReplicationForApplication
    
        $dataSourceCount = $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES.Count
            
        for ($ds = 0; $ds -lt $dataSourceCount; $ds++)
        {
            ''
            "Data Source $ds"
    
            $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES."DS$ds".Name
            $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES."DS$ds".Logicalpath
            $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES."DS$ds".ProductionServerName
        }
    }


    • Edited by David Wyatt Tuesday, January 7, 2014 5:43 PM
    • Marked as answer by GRepar Tuesday, January 7, 2014 9:30 PM
    Tuesday, January 7, 2014 3:01 PM

All replies

  • PowerShell gives you some nice options for working with XML.  If you need it, you have the underlying .NET Framework methods (SelectNodes, SelectSingleNode, etc), which allow you to work with XPath queries.

    However, PowerShell makes things easier by turning the elements and attributes from the XML file into properties of the document object, allowing you to access them by dot notation (ie, $documentObject.RootElement.ChildElement.AttributeName).  For example:

    $xmlPath = 'C:\Path\To\YourXmlFile.xml'
    
    $xml = [xml](Get-Content -Path $xmlPath)
    
    $xml.DPMConfig.Z0000013.Groups.Count
    $xml.DPMConfig.Z0000013.Groups.PG0.SHORTTERMPOLICY.IncrementalSet
    
    On a side note, the XML you posted is invalid.  It's missing the opening tag for <PG2>.
    Tuesday, January 7, 2014 2:09 PM
  • Thanks David,

    XML posted is missing some tags, just to post smaller xml.

    What I would like is to get these attributes with PS:

    xml.DPMConfig.Z0000013.Groups.PGx.ShortTermPolicy.Schedules.ShadowCopy

    xml.DPMConfig.Z0000013.Groups.PGx.ShortTermPolicy.Schedules.FullReplicationForApplication

    xml.DPMConfig.Z0000013.Groups.PGx.DATASOURCES.DSy.Name

    xml.DPMConfig.Z0000013.Groups.PGx.DATASOURCES.DSy.Logicalpath

    xml.DPMConfig.Z0000013.Groups.PGx.DATASOURCES.DSy.ProductionServerName

    x and y are iterations inside elements.

    Regards,

    Grega

    Tuesday, January 7, 2014 2:37 PM
  • Based on what I can see in your sample file, here's one way that you might get to that information:

    $xmlPath = 'C:\Path\To\YourXmlFile.xml'
    
    $xml = [xml](Get-Content -Path $xmlPath)
    
    $groupCount = $xml.DPMConfig.Z0000013.Groups.Count
    
    for ($g = 0; $g -lt $groupCount; $g++)
    {
        ''
        "Group $g"
    
        $xml.DPMConfig.Z0000013.Groups."PG$g".ShortTermPolicy.Schedules.ShadowCopy
        $xml.DPMConfig.Z0000013.Groups."PG$g".ShortTermPolicy.Schedules.FullReplicationForApplication
    
        $dataSourceCount = $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES.Count
            
        for ($ds = 0; $ds -lt $dataSourceCount; $ds++)
        {
            ''
            "Data Source $ds"
    
            $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES."DS$ds".Name
            $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES."DS$ds".Logicalpath
            $xml.DPMConfig.Z0000013.Groups."PG$g".DATASOURCES."DS$ds".ProductionServerName
        }
    }


    • Edited by David Wyatt Tuesday, January 7, 2014 5:43 PM
    • Marked as answer by GRepar Tuesday, January 7, 2014 9:30 PM
    Tuesday, January 7, 2014 3:01 PM
  • Perfect David,

    That's what I was looking.

    Thanks a lot!

    Grega

    Tuesday, January 7, 2014 9:32 PM