Schönen Tag,
ich habe ein .xml-File mit folgenden Inhalt:
<?xml version="1.0"?>
<MBNProfile xmlns="http://www.microsoft.com/networking/WWAN/profile/v1">
<Name>A1</Name>
<IsDefault>true</IsDefault>
<ProfileCreationType>DeviceProvisioned</ProfileCreationType>
<SubscriberID>12312313131312313123</SubscriberID>
<SimIccID>123123123123123</SimIccID>
<HomeProviderName>A1</HomeProviderName>
<AutoConnectOnInternet>false</AutoConnectOnInternet>
<ConnectionMode>auto-home</ConnectionMode>
<Context>
<AccessString></AccessString>
<UserLogonCred>
<UserName>useruseruseruser</UserName>
<Password>nothing special</Password>
</UserLogonCred>
<Compression>DISABLE</Compression>
<AuthProtocol>NONE</AuthProtocol>
</Context>
</MBNProfile>
Ich möchte nun mithilfe von Powershell, "auto-home" durch "auto" ersetzen und das "false" bei AutoConnectOnInternet durch "true" ersetzen.
Angefangen habe ich so:
[xml]$WWAN=Get-Content "c:\temp\hallo.xml"
$WWAN.MBNProfile.ConnectionMode
Wie kann ich nun den Wert der in ConnectionMode und AutoConnectOnInternet steckt ersetzen?
Liebe Grüße,
Patrick