Bize Ulaşın / Contact Us

Script ile DNS Suffix duzenleme ve ekleme

01 / 10 / 2009 by DNS, Scripting Yorum yok / No Comments

Bilgisayarinizdaki DNS suffix leri script ile duzenlemek veya tanimlamak icin asagidaki ornekten yararlanabilirsiniz, asagidaki ornekte gormus oldugunuz istanbul.domainim.com ve ankara.domainim.com son eklerini size uygun olacak sekilde degistiriniz, isterseniz daha fazlasini benzer formatta ekleyebilirsiniz.

On Error Resume Next

strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set objNetworkSettings = objWMIService.Get(“Win32_NetworkAdapterConfiguration”)
arrDNSSuffixes = Array(“hr.fabrikam.com”, “research.fabrikam.com”)
objNetworkSettings.SetDNSSuffixSearchOrder(arrDNSSuffixes)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*

Kontrol / Control * Time limit is exhausted. Please reload CAPTCHA.