se2946
09-28-2006, 06:51 AM
I need a script which have following function.
Check the DNS setting which is configured via manually setting or it is
provided by DHCP Server.
I want to check for Windows 2000 and XP.
Pegasus \(MVP\)
09-28-2006, 09:36 AM
"se2946" <se2946@discussions.microsoft.com> wrote in message
news:3037DCA9-88DE-4CA5-8016-132403F96E84@microsoft.com...
> I need a script which have following function.
> Check the DNS setting which is configured via manually setting or it is
> provided by DHCP Server.
> I want to check for Windows 2000 and XP.
I suspect you have to extract it from here for each of your
adapters:
HKLM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
se2946
09-29-2006, 01:31 AM
Pegasus,
Thank you for your reply.
I checked it.
I can not find who set DNS settings (DHCP or Manual input)
How can I define "Obtain DNS server address. automatically" is selected ?
"Pegasus (MVP)" wrote:
>
> "se2946" <se2946@discussions.microsoft.com> wrote in message
> news:3037DCA9-88DE-4CA5-8016-132403F96E84@microsoft.com...
> > I need a script which have following function.
> > Check the DNS setting which is configured via manually setting or it is
> > provided by DHCP Server.
> > I want to check for Windows 2000 and XP.
>
> I suspect you have to extract it from here for each of your
> adapters:
> HKLM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
>
>
>
Pegasus \(MVP\)
09-29-2006, 01:46 AM
The usual method is to do this:
1. Set DNS to DHCP.
2. Export the registry branch I gave you.
3. Set DNS to a fixed address.
4. Export the registry branch to a different file.
5. Compare the two exported files.
"se2946" <se2946@discussions.microsoft.com> wrote in message
news:EBA332A2-4B36-40B7-9CB7-FDEFFA4DDB4E@microsoft.com...
> Pegasus,
> Thank you for your reply.
> I checked it.
> I can not find who set DNS settings (DHCP or Manual input)
> How can I define "Obtain DNS server address. automatically" is selected ?
>
>
> "Pegasus (MVP)" wrote:
>
> >
> > "se2946" <se2946@discussions.microsoft.com> wrote in message
> > news:3037DCA9-88DE-4CA5-8016-132403F96E84@microsoft.com...
> > > I need a script which have following function.
> > > Check the DNS setting which is configured via manually setting or it
is
> > > provided by DHCP Server.
> > > I want to check for Windows 2000 and XP.
> >
> > I suspect you have to extract it from here for each of your
> > adapters:
> > HKLM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
> >
> >
> >