none
[ Power Shell ] -- Get DHCP Scopes and Scope Options RRS feed

  • Frage

  • Hello everyone!

    I would like to make an export from all DHCP Scopes and with their Scope Options.

    But i cant find any clue how to do that. (And yeah.. i was searching for mor then 10minutes on the internet for it)

    all i could found was the neth function. But the output from this function isnt good at all!

     

    Does anyone know how to script a query an export all DHCP Scopes with their Scope Options to a .txt File (or something else, doesnt matter)

    it realy would be great! =)

     

    Thank you

     

    C. Kaiser

    Mittwoch, 26. Januar 2011 08:47

Antworten

  • > And yeah.. i was searching for mor then 10minutes on the internet for it

    You did? :) And yet i found tons of promising sites in under 5 seconds. :)

    Anyway, take a look here   and here . Ah, and here (this one should be the most promising to get all the options as well.) That should get you started. If you have any additional questions or problems, please post them here.

    Denniver

     

     

    Mittwoch, 26. Januar 2011 12:10
    Moderator
  • Hello,

    it's very simply without powershell:

    netsh dhcp server \\server dump > DHCP-Master.txt

    and for restore: netsh exec <file.txt>

    Armin

    Mittwoch, 26. Januar 2011 13:06

Alle Antworten

  • > And yeah.. i was searching for mor then 10minutes on the internet for it

    You did? :) And yet i found tons of promising sites in under 5 seconds. :)

    Anyway, take a look here   and here . Ah, and here (this one should be the most promising to get all the options as well.) That should get you started. If you have any additional questions or problems, please post them here.

    Denniver

     

     

    Mittwoch, 26. Januar 2011 12:10
    Moderator
  • Hello,

    it's very simply without powershell:

    netsh dhcp server \\server dump > DHCP-Master.txt

    and for restore: netsh exec <file.txt>

    Armin

    Mittwoch, 26. Januar 2011 13:06