RE: Export DHCP reservations to a file every 4 hours

Discussion in 'Scripting' started by Masterplan, Oct 10, 2008.

  1. Masterplan

    Masterplan Guest

    Hi,

    You can run a batch script with this command:
    netsh dhcp server DHCP_SERVER_IP scope SCOPE_IP dump > c:\test.txt
    For additional information about netsh, see here:
    http://technet.microsoft.com/en-us/library/cc778925.aspx

    --
    Have a nice day!

    http://winmasterplan.blogspot.com


    "rushtosri" wrote:

    > Folks,
    >
    > I'm new to scripting. I'm trying to write a script that can export
    > dhcp IP reservations from multiple scopes to a text file every 4
    > hours. I would appreciate if someone can help me with the logic or the
    > script (if you have it already).
    >
    > Thanks in advance.
    >
    > Cheers!!
    > Sridhar.
    >
     
    Masterplan, Oct 10, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Gregg Hill

    DHCP reservations and exclusions questions

    Gregg Hill, Aug 13, 2005, in forum: Windows Server
    Replies:
    3
    Views:
    1,394
    Manny Borges
    Aug 15, 2005
  2. M_Hood

    DHCP - Manually re-enter reservations ?

    M_Hood, Aug 24, 2006, in forum: Windows Server
    Replies:
    1
    Views:
    369
    Miha Pihler [MVP]
    Aug 24, 2006
  3. Herb Martin

    Re: DHCP Reservations vs. Static IP Addressing

    Herb Martin, Apr 17, 2007, in forum: Windows Server
    Replies:
    11
    Views:
    519
    DevilsPGD
    Apr 18, 2007
  4. fern
    Replies:
    1
    Views:
    418
    emmanuel meurant
    Aug 6, 2007
  5. Alex
    Replies:
    1
    Views:
    543
    ObiWan [MVP]
    Sep 24, 2007
  6. Pegasus \(MVP\)
    Replies:
    4
    Views:
    4,119
    Pegasus \(MVP\)
    Oct 24, 2007
  7. Sean

    SBS 2003 Std Backups taking 8 hours from 4 hours

    Sean, Aug 5, 2009, in forum: Windows Small Business Server
    Replies:
    11
    Views:
    601
  8. Meinolf Weber [MVP-DS]

    Re: Windows Server 2008 DHCP Reservations not visible from 2003 DHCP mmc

    Meinolf Weber [MVP-DS], Apr 2, 2009, in forum: Server Networking
    Replies:
    0
    Views:
    1,084
    Meinolf Weber [MVP-DS]
    Apr 2, 2009
Loading...