Jump to content

Recommended Posts

Posted (edited)

    <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 SETX SERVER 10.174.0.1 -m</Path>
                    <Description>SETX SERVER</Description>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>cmd /c FOR /f "tokens=2 delims=:" %i IN (`echo quit^|nslookup^ | find "Address:"`) SETX DNSIP %i -m</Path>
                    <Description>SETX DNSIP</Description>
                </RunSynchronousCommand>

                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>cmd /c for /f "usebackq tokens=2* delims=:"  %%a in (`ipconfig /displaydns ^| findstr /I "intern"`) do SETX DNSSERVER %a -m</Path>
                    <Description>SETX DNSSERVER</Description>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>

but is a error.

 

please help me

Edited by saintwolf

Posted (edited)

I have improved it, but the error message is still the same.

 

I have 3 WDS server to install and once I need the name of the server and the IP

Edited by saintwolf
Posted

Can you explain "the error message" in more detail?

 

Have you validated your answer file in WSIM? I would think that perhaps it would have problems with some of those extra characters you have in there.

Posted

I have it

 

   <Path>cmd /c for /f "usebackq tokens=7* delims=: " %a in (`ipconfig /displaydns ^| findstr /I "intern"`) do SETX DNSSERVER %a -m</Path>

 

but I can not in the <settings pass="auditUser">

 

<Path>\\%DNSSERVER%\reminst\OA3.0\srv_finden.cmd</Path>

Posted

You might find it odd, but I never actually use AuditUser for anything. In order for me to run applications automatically on boot in Audit Mode, I will put the script into the Administrator's Startup folder. :blushing:

 

Even though the Start Menu does not exist anymore, things in that folder still execute at logon.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...