Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Dynamic DNS Registration for a Network AdapterContent of Modify Dynamic DNS Registration for a Network Adapter.vbsMD5 Hash: 1BD3A1F27A1CF7169ADA68C2BD678F70 |
||
' Description: Configures dynamic DNS registration for a network adapter.
On Error Resume Next Const FULL_DNS_REGISTRATION = True Const DOMAIN_DNS_REGISTRATION = False strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetCards = objWMIService.ExecQuery _ ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objNetCard in colNetCards objNetCard.SetDynamicDNSRegistration FULL_DNS_REGISTRATION, _ DOMAIN_DNS_REGISTRATION Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |