DHCPServer Module Question

Welcome Forums General PowerShell Q&A DHCPServer Module Question

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
3 months, 3 weeks ago.

  • Author
    Posts
  • #131849

    Participant
    Topics: 4
    Replies: 76
    Points: 328
    Helping Hand
    Rank: Contributor

    Can anybody enlighten me on any meaningful difference between these two commands?

    Backup-DhcpServer -ComputerName DHCPServer -Path \\path\to\backup
    

    vs.

    Export-DhcpServer -ComputerName DHCPServer -File \\path\to\backup\file.xml -Leases
    

    A couple of observations from experimenting. First, Backup- appears to require a higher permission set then Export-. 2, export produces an .xml file were backup produces the typical "DHCPcfg" type file.

    Based on what I was reading in the online help files for both cmdlets, it appears they both achieve the same result. A full backup of the DHCP servers scopes including lease and reservation information. Am I missing something? Does anyone else have any experience in this area? Thanks for any thoughts, tips, or guidance!

    https://docs.microsoft.com/en-us/powershell/module/dhcpserver/backup-dhcpserver?view=win10-ps

    https://docs.microsoft.com/en-us/powershell/module/dhcpserver/export-dhcpserver?view=win10-ps

  • #131925

    Participant
    Topics: 2
    Replies: 25
    Points: 167
    Helping Hand
    Rank: Participant

    Is export-dhcpserver aimed more at those are migrating dhcp servers between hosts, whereas backup-dhcpserver is for those that want a meaningful backup in place in the event of an issue?

    Although they achieve the same result, they maybe better suited to those tasks?

    My two pence\cents worth of thoughts.... 🙂

     

     

     

     

     

     

    • #132105

      Participant
      Topics: 4
      Replies: 76
      Points: 328
      Helping Hand
      Rank: Contributor

      Thank you for taking some time to consider this post and offer your perspective on it. I appreciate it!

The topic ‘DHCPServer Module Question’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort