saintwolf
Goto Top

Windows Unattend mit server als systemvariable

ich möchte gerne das:
<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>
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.

Content-Key: 237166

Url: https://administrator.de/contentid/237166

Ausgedruckt am: 28.03.2024 um 23:03 Uhr