Hi,

Have anyone done script which lists f. ex. DHCP servers on network and
exports all settings to .csv or .txt -file?

Re: Export DHCP/WINS Using VBscript by Tylerb

Tylerb
Mon Jan 29 22:59:33 CST 2007

No, but you do know that you can right button on the DHCP server(s) on
the MMC and export list?



Re: Export DHCP/WINS Using VBscript by Pasi

Pasi
Tue Jan 30 04:52:47 CST 2007

...Export list function exports only MMC console columns. I need also Server
Properties (General, DNS,..), lease duration, etc. settings.

- Pasi Heino

"Tylerb" <tyler_beard@hotmail.com> wrote in message
news:1170133173.518813.63460@k78g2000cwa.googlegroups.com...
> No, but you do know that you can right button on the DHCP server(s) on
> the MMC and export list?
>
>



RE: Export DHCP/WINS Using VBscript by ShaunSawyer

ShaunSawyer
Tue Jan 30 07:15:00 CST 2007

You can always use NETSH to dump the configuration to a text file:

netsh dhcp server dump > <path>:\<file>
netsh wins dump > <path>:\<file>

e.g.
netsh dhcp server dump > C:\dhcp.txt
netsh wins dump > C:\wins.txt

You will need to enter the whole line at the command prompt (not within the
netsh shell else it will just display to the screen).

This has the added benifit of providing the netsh commands to recreate the
settings.

Regards.

"Pasi Heino" wrote:

> Hi,
>
> Have anyone done script which lists f. ex. DHCP servers on network and
> exports all settings to .csv or .txt -file?
>
>
>
>