saintwolf Posted May 12, 2014 Share Posted May 12, 2014 (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 May 13, 2014 by saintwolf Link to comment Share on other sites More sharing options...
Tripredacus Posted May 12, 2014 Share Posted May 12, 2014 You have mismatched Path elements. Why is there two of them to start the object? Link to comment Share on other sites More sharing options...
saintwolf Posted May 13, 2014 Author Share Posted May 13, 2014 (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 May 13, 2014 by saintwolf Link to comment Share on other sites More sharing options...
Tripredacus Posted May 13, 2014 Share Posted May 13, 2014 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. Link to comment Share on other sites More sharing options...
saintwolf Posted May 14, 2014 Author Share Posted May 14, 2014 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> Link to comment Share on other sites More sharing options...
Tripredacus Posted May 14, 2014 Share Posted May 14, 2014 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. Even though the Start Menu does not exist anymore, things in that folder still execute at logon. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now