Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need to change the DNS suffix on Win7 PC's. Netsh does lots, but I can't find this in there. Any way to change it in a batch file (such as a logon script)?

share|improve this question
Do you want to change the actual DNS suffix, or the DNS Search Suffix? –  MDMarra Dec 3 '12 at 17:34
You can do it with powershell and get-wmiobject, but need to know what value you are actually looking to change as MDMarra said. –  Mike Dec 3 '12 at 17:40
You can also set it in DHCP options or GPOs. –  TheCleaner Dec 3 '12 at 17:46
I'm looking to check the "append parent suffixes of the primary DNS suffix" box –  a1296519 Dec 5 '12 at 16:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.