Batch file to append dns suffixes
Is there a command to do this programatically? Improve this question. Chris Sobolewski. Chris Sobolewski Chris Sobolewski 3 3 gold badges 7 7 silver badges 15 15 bronze badges. Why are you ab? Please don't get me started, lol. Why am I the one who pioneered our imaging initiative when I'm just tier 2 support? Add a comment. Active Oldest Votes. Improve this answer. Using the reg method above did not work for me. Benoit Duffez Benoit Duffez 8 8 silver badges 22 22 bronze badges. Sign up or log in Sign up using Google.
Sign up using Facebook. Thanks for your help guys. I really appreciate it. VBScab: I haven't been able to figure out why the code you posted would not work, but I'm sure I just need to spend a little more time on it and I should be able to figure it out. There were two variable name errors, but I fixed that. I needed to add two, so I just repeat the code Create the string and Split it into an array, or create an array from scratch if you prefer, then loop through the array elements.
VBScab: I took your advice. Not sure if this is what you meant, but it works. Let me know if you have any better suggestions. Posted by: elgwhoppo 12 years ago. Thinking outside the scripting box, would you consider using a GPO? The values of the DNS suffixes in this setting may be set using comma-separated strings, such as "microsoft.
One DNS suffix is attached for each submission of a query. If a query is unsuccessful, a new DNS suffix is added in place of the failed suffix, and this new query is submitted. The values are used in the order they appear in the string, starting with the leftmost value and preceding to the right. Not trying to push you away from learning to use vbscript, it's an invaluable skill so I commend that.
Just trying to make sure you are aware of the options. Rating comments in this legacy AppDeploy message board thread won't reorder them, so that the conversation will remain readable. Answer this question. Skip to content. Pushing Windows Updates to Remote Computers ». So, if the 3 DNS suffixes are: domain1. Then click OK. In the control panel network connections window that appears, select the active network interface.
0コメント