myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


push dns

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> push dns Page: [1]
Login
Message << Older Topic   Newer Topic >>
push dns - 9/17/2008 8:25:50 AM   
notjes

 

Posts: 16
Score: 0
Joined: 7/11/2008
Status: offline
hi,

is there a script that can push dns suffix with sms 2003
Post #: 1
RE: push dns - 9/17/2008 8:37:25 AM  1 votes
hcortez463


Posts: 780
Score: 62
Joined: 4/8/2005
Status: offline
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)

_____________________________

If it Helps, Please rate....

(in reply to notjes)
Post #: 2
RE: push dns - 9/17/2008 11:04:00 AM   
mp115


Posts: 285
Score: 7
Joined: 3/23/2005
Status: offline
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"



(in reply to hcortez463)
Post #: 3
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> push dns Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.219