Windows Unattend mit server als systemvariable
ich möchte gerne das:
aber ich hab da wohn noch ein Fehler drin:
Der Bereich klapt nicht:
<Path>cmd /c FOR /f "tokens=2 delims=:" %i IN (`echo quit^|nslookup^|find "Address:"`) DO SETX DNSSERVER %i -m</Path>
da ich den Server mehrfach verwende und ich mehrere hab, von dennen installiert wird.
hoffe es kann mir wer helfen
DANKE vorab.
<settings pass="specialize">
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd /c FOR /f "tokens=2 delims=:" %i IN (`echo quit^|nslookup^|find "Address:"`) DO SETX DNSSERVER %i -m</Path>
<Description>SET %DNSSERVER%</Description>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
Der Bereich klapt nicht:
<Path>cmd /c FOR /f "tokens=2 delims=:" %i IN (`echo quit^|nslookup^|find "Address:"`) DO SETX DNSSERVER %i -m</Path>
da ich den Server mehrfach verwende und ich mehrere hab, von dennen installiert wird.
hoffe es kann mir wer helfen
DANKE vorab.
Please also mark the comments that contributed to the solution of the article
Content-Key: 237166
Url: https://administrator.de/contentid/237166
Printed on: April 19, 2024 at 17:04 o'clock