Bize Ulaşın / Contact Us

Script ile IP adresinin DHCP sunucudan alinmasini ayarlamak

25 / 04 / 2010 by Uncategorized Yorum yok / No Comments

Asagidaki vb scriptini kullanarak bilgisayarlarinizin IP adreslerini statik almalari yerine DHCP almalari icin konfigure edebilirsiniz. Dilerseniz bu scripti Group Policy ile belli bir OU da topladiginiz istemcilerinize yayarak Statik Ip yonetiminden Dinamige geciyorsaniz isinizi kolaylastirmak icin kullanabilirsiniz.


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

Set colNetAdapters = objWMIService.ExecQuery _
(“Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE”)

For Each objNetAdapter In colNetAdapters
errEnable = objNetAdapter.EnableDHCP()
Next

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.