push dns (Full Version)

All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003



Message


notjes -> push dns (9/17/2008 8:25:50 AM)

hi,

is there a script that can push dns suffix with sms 2003




hcortez463 -> RE: push dns (9/17/2008 8:37:25 AM)

ive used the bellow script to append, you might be able to modify it.

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
   & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration")
arrDNSSuffixes = Array("test.com","test2.com")
objNetworkSettings.SetDNSSuffixSearchOrder(arrDNSSuffixes)




mp115 -> RE: push dns (9/17/2008 11:04:00 AM)

That script works good.  You can also do it with a registry entry with a REG_SZ string value.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters\SearchList = "domain1.net, domain2.net, someplace.someplace.domain3.net"






Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.375