Re: Win32_NetworkAdapterConfiguration and DNS settings
From: Emmet Gray (egray1_at_hot.rr.com)
Date: 05/25/04
- Next message: Emmet Gray: "Re: RAM Type."
- Previous message: Emmet Gray: "Re: msinfo32 tool"
- In reply to: reaperman: "Win32_NetworkAdapterConfiguration and DNS settings"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: Emmet Gray: "Re: RAM Type."
- Previous message: Emmet Gray: "Re: msinfo32 tool"
- In reply to: reaperman: "Win32_NetworkAdapterConfiguration and DNS settings"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|