Re: Win32_NetworkAdapterConfiguration and DNS settings

From: Emmet Gray (egray1_at_hot.rr.com)
Date: 05/25/04


Date: Tue, 25 May 2004 11:04:54 -0500

That's odd... both DomainDNSRegistrationEnabled and
FullDNSRegistrationEnabled are new to WinXP (and above)... and not supported
by Win2k (and below). Are you sure you don't have the two backwards?

"reaperman" <reaper_man@mail.ru> wrote in message
news:uJc$%23ZbOEHA.3264@tk2msftngp13.phx.gbl...
> Hello, All!
>
> Can anyone help me with the folowing problem:
> I wrote a simple JScript to identify DNS registration settings for
> workstations in a domain. The script looks like follows:
>
> // -- clipboard begins
> var objWMIService =
GetObject('winmgmts:\\\\SomeWorkstation\\root\\cimv2');
>
> var colAdapters = objWMIService.ExecQuery('SELECT * FROM
> Win32_NetworkAdapterConfiguration WHERE IPEnabled = True');
> var enumAdapters = new Enumerator(colAdapters);
> for ( ; !enumAdapters.atEnd(); enumAdapters.moveNext() ) {
> with( enumAdapters.item() ) {
> WScript.Echo('Use this connection\'s DNS suffix in DNS registration: ' +
> (DomainDNSRegistrationEnabled ? 'enabled' : 'disabled'),
> DomainDNSRegistrationEnabled,
> '\nRegister this connection\'s addresses in DNS: ' +
> (FullDNSRegistrationEnabled ? 'enabled' : 'disabled'),
> FullDNSRegistrationEnabled);
> }
> }
> // -- clipboard ends
>
> The script works fine for any box where there's Win2000/2003 installed,
but
> when a box has XP, then both DomainDNSRegistration properties are null.
> What's so special about XP in this case and is there any way to get the
> information needed? Thanx in advance :)
>
> --
> With best regards, reaperman. E-mail: reaper_man@mail.ru
>
>



Relevant Pages

  • Re: [help] WMI could not connect with a XP host
    ... On WinXP Home you cannot disable the ForceGuest, ... Use of included script samples are subject to the terms specified at ... > when the destination is a win2k system. ... > when I run it on win2k to detect a winxp host. ...
    (microsoft.public.win32.programmer.wmi)
  • [help] WMI could not connect with a XP host
    ... we have some hosts working in a workgroup.some are win2k sp4 others ... I am writing a script to detect if "automatic update" are running on ... when the destination is a win2k system. ... when I run it on win2k to detect a winxp host. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Easy way of changing IP addresses using a script
    ... default gateway, via a script. ... present in win2k and winxp ...
    (microsoft.public.windows.server.networking)
  • Re: reading HKEY_USERS under win2k
    ... I see exactly the same thing in win2k. ... In winxp it works ... Jordan Mills ... > this script will return a list of all the key under HKEY_USERS on a winXP ...
    (microsoft.public.scripting.wsh)
  • Re: Turning 3 pages of A4 into a 2-up A3 spread and 1 A4 sheet?
    ... > If in the future I get to grips with Postscript I can perhaps follow ... > Chapman's procedure and rewrite the perl script so that it adds code ... defines a version of showpage that executes postshow if ... If ODD, sets the initial paper selection to A4, and sets postshow to ...
    (comp.lang.postscript)