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)?
Asked
Active
Viewed 3,748 times
1
-
3Do you want to change the actual DNS suffix, or the DNS **Search** Suffix? – MDMarra Dec 03 '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 03 '12 at 17:40
-
You can also set it in DHCP options or GPOs. – TheCleaner Dec 03 '12 at 17:46
-
I'm looking to check the "append parent suffixes of the primary DNS suffix" box – a1296519 Dec 05 '12 at 16:45
-
See https://superuser.com/questions/198231/append-dns-suffixes-via-windows-command-prompt. – Mike Lowery Mar 13 '19 at 20:42