Quantcast
Channel: Desktop & Server Management (DSM) Forum
Viewing all articles
Browse latest Browse all 470

XML Datei per Powershell modifizieren.

$
0
0
Hallo zusammen,

ich mühe mich ab in der unattend.xml eine Zeile hinzuzufügen.


Ich möchte zu der in "rot" markierten Zeile eine weitere hinzufügen.
Code:

      <Interfaces>
        <Interface wcm:action="add">
          <DNSServerSearchOrder>
            <IpAddress wcm:action="add" wcm:keyValue="1">123.123.123.123</IpAddress>
          </DNSServerSearchOrder>
        </Interface>
      </Interfaces>

In etwa das es so danach aussieht.
Code:

      <Interfaces>
        <Interface wcm:action="add">
          <DNSServerSearchOrder>
            <IpAddress wcm:action="add" wcm:keyValue="1">123.123.123.123</IpAddress>
            <IpAddress wcm:action="add" wcm:keyValue="2">223.223.223.223</IpAddress>
          </DNSServerSearchOrder>
        </Interface>
      </Interfaces>

Hat das schon jemand mal gemacht?

Danke im Voraus für eure Antworten.

Viewing all articles
Browse latest Browse all 470

Trending Articles