none
Use systemstate backup to to restore DHCP/WINS

    Question

  • I posted this question in DS forum but would like to search help from network forum too.

    http://social.technet.microsoft.com/Forums/en-US/winserverDS/thread/c0cc3941-beb5-47a7-8942-c493a7ae86be

     Here is my question waiting for answer.  The systemstate backup includes DHCP/WINS database and log files. How can I use the restored data for systemstate backup to recover DHCP and all its settings in WIndows 2008? Can I simply copy it and overwrite  the dhcp.mdb in C:\\WINDOWS\\System32\\dhcp?  What I found was there's an additional DhcpCfg file in the backup directory when I backed up DHCP from the DHCP managment console. It seems have the registry information and extra information. But this DhcpCfg doesn't exist in systemstate backup though.

    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DhcpServer\Parameters]
    "ServiceDllUnloadOnStop"=dword:00000001
    "DatabaseLoggingFlag"=dword:00000001
    "RestoreFlag"=dword:00000000
    "DatabaseCleanupInterval"=dword:0000003c
    "ServiceMain"="ServiceEntry"
    "BackupInterval"=dword:0000003c
    "APIProtocolSupport"=dword:00000005
    "DebugFlag"=dword:00000000
    "DhcpLogFilesMaxSize"=dword:00000046
    "DatabaseName"="dhcp.mdb"
    "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
      00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
      64,00,68,00,63,00,70,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,\
      00
    "BackupDatabasePath"=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,\
      00,53,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
      68,00,63,00,70,00,5c,00,62,00,61,00,63,00,6b,00,75,00,70,00,00,00
    "DatabasePath"=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,68,00,\
      63,00,70,00,00,00
    "DhcpLogFilePath"="C:\\WINDOWS\\System32\\dhcp"
    "DhcpServerDUIDV6"=hex:00,01,00,00,4d,af,2e,ad,00,50,56,ac,00,02
    "DhcpV6LogFilePath"="C:\\WINDOWS\\System32\\dhcp"
    "Version"=dword:00000000
    "RestoreDatabasePath"="E:\\Restore"

    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DhcpServer\Parameters\Configuration]


    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Monday, March 05, 2012 3:19 PM

All replies

  • Can I use systemstate backup to restore DHCP/WINS on Windows 2008 server? I saw there're threads talking about this but no firm answer yet. Thanks in advance!

    http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/1db486a8-94d3-42b2-a3ca-b30283cee7ae

    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/d8667dd6-3ea7-4ddd-a093-203cbefd4beb


    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    • Merged by Tiger Li Tuesday, March 06, 2012 1:24 AM
    Friday, March 02, 2012 1:48 PM
  • Some Article suggest that , We can use system state backup to backup and restore DHCP database in windows server 2008( Check the below link)

    http://www.itechtalk.com/thread2138.html.

    http://documentation.commvault.com/hds/release_8_0_0/books_online_1/english_us/features/system_state/system_state.htm

    Sysvol components of window server 2008 are ,

    • System File Protection catalog and files
    • Performance monitor configuration files
    • Active Directory
    • Quotas
    • SYSVOL (if this is a domain controller)
    • Certificate Services database (if this is a certificate server)
    • Cluster database (if this server is part of a cluster)
    • Registry
    • COM+ database
    • DHCP
    • WINS
    • IIS
    • UDDI (only with Windows Server 2003 using VSS)
    • Disk quota information
    • Event logs
    • RSM database
    • WMI database
    • Terminal Server Licensing database
    • Content Indexing catalogs
    • Network Policy Server (NPS)
    • 1-Touch Component

    But I did not find any of the TechNet Article on this.

    However you can use the DHCP Console to backup and restore the DHCP.

    http://www.jackcobben.nl/?tag=backup

    Regards,

    _Prashant_


    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Friday, March 02, 2012 2:08 PM
  • Hi,

    You can use the systemstate backup for DHCP and WINS. Windows Server Backup system state involve all the files reported by System Writer, which include the files for installed roles. Specifically DHCP and WINS services are included as part of system state backup.

    Reference: http://social.technet.microsoft.com/Forums/sv/windowsbackup/thread/baa73f35-d197-4ea6-bc58-62cd1c65017b


    Best Regards,

    Abhijit Waikar.
    MCSA 2003 | MCSA:Messaging | MCTS | MCITP:Server Administrator | Microsoft Community Contributor | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, March 02, 2012 3:03 PM
  • Thanks Prashan and Abhijit. I tested a systemstate restore and it indeed included DHCP/WINS data. How can I use the restored data for systemstate backup to recover DHCP and all its settings? Can I simply copy it and overwrite  the dhcp.mdb in C:\\WINDOWS\\System32\\dhcp?  What I found was there's an additional DhcpCfg file in the backup directory when I backed up DHCP from the DHCP managment console. It seems have the registry information and extra information. But this DhcpCfg doesn't exist in systemstate backup though.

    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DhcpServer\Parameters]
    "ServiceDllUnloadOnStop"=dword:00000001
    "DatabaseLoggingFlag"=dword:00000001
    "RestoreFlag"=dword:00000000
    "DatabaseCleanupInterval"=dword:0000003c
    "ServiceMain"="ServiceEntry"
    "BackupInterval"=dword:0000003c
    "APIProtocolSupport"=dword:00000005
    "DebugFlag"=dword:00000000
    "DhcpLogFilesMaxSize"=dword:00000046
    "DatabaseName"="dhcp.mdb"
    "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
      00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
      64,00,68,00,63,00,70,00,73,00,73,00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,\
      00
    "BackupDatabasePath"=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,\
      00,53,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\
      68,00,63,00,70,00,5c,00,62,00,61,00,63,00,6b,00,75,00,70,00,00,00
    "DatabasePath"=hex(2):43,00,3a,00,5c,00,57,00,49,00,4e,00,44,00,4f,00,57,00,53,\
      00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,68,00,\
      63,00,70,00,00,00
    "DhcpLogFilePath"="C:\\WINDOWS\\System32\\dhcp"
    "DhcpServerDUIDV6"=hex:00,01,00,00,4d,af,2e,ad,00,50,56,ac,00,02
    "DhcpV6LogFilePath"="C:\\WINDOWS\\System32\\dhcp"
    "Version"=dword:00000000
    "RestoreDatabasePath"="E:\\Restore"

    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\DhcpServer\Parameters\Configuration]


    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Friday, March 02, 2012 9:15 PM
  • Hi,

    Read below link to restore DHCP database : http://technet.microsoft.com/en-us/library/dd759235.aspx


    Best Regards,

    Abhijit Waikar.
    MCSA 2003 | MCSA:Messaging | MCTS | MCITP:Server Administrator | Microsoft Community Contributor | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


    Saturday, March 03, 2012 5:58 AM
  • Hello,

    Please also see that as it may helps: http://support.microsoft.com/kb/173396

    Note that this is Directory Services forum. So, you can ask them here:

    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/threads

    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/threads


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.   

    Microsoft Student Partner 2010 / 2011
    Microsoft Certified Professional
    Microsoft Certified Systems Administrator: Security
    Microsoft Certified Systems Engineer: Security
    Microsoft Certified Technology Specialist: Windows Server 2008 Active Directory, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Network Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows Server 2008 Applications Infrastructure, Configuration
    Microsoft Certified Technology Specialist: Windows 7, Configuring
    Microsoft Certified Technology Specialist: Designing and Providing Volume Licensing Solutions to Large Organizations
    Microsoft Certified IT Professional: Enterprise Administrator
    Microsoft Certified IT Professional: Server Administrator
    Microsoft Certified Trainer

    Saturday, March 03, 2012 2:21 PM
  • Hello,

    Please also see that as it may helps: http://support.microsoft.com/kb/173396

    Note that this is Directory Services forum. So, you can ask them here:

    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/threads

    http://social.technet.microsoft.com/Forums/en-US/windowsbackup/threads


    This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.<span style="border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;border-image:initial;font-family:'Segoe UI', 'Lucida Grande', Verdana, Arial, Helvetica, sans-serif;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;outline-width:0px;outline-style:initial;outline-color:initial;padding-top:0px;p

    Saturday, March 03, 2012 2:23 PM
  • Thanks all for your reply. Since we are pretty sure systemstate includes DHCP/WINS data, the only question now is how to or can use it to restore DCHP/WINS in W2K8. I posted it on NIS forum following Mr X's recommendation and hope we can get the answer soon..

    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Monday, March 05, 2012 3:28 PM
  • Maybe this link will help explain it a little better:

    ======
    The quote below is from:
    More About DHCP Backup and Restore
    http://technet.microsoft.com/en-us/library/dd759235.aspx

    Synchronous backups occur automatically every 60 minutes.

    When a synchronous or asynchronous backup, occurs, the entire DHCP database is saved, including the following, and will be restored when a restore is performed.

    1. All scopes, including superscopes and multicast scopes
    2. Reservations
    3. Leases
    4. All options, including server options, scope options, reservation options, and class options
    5. All registry keys and other configuration settings (for example, audit log settings and folder location settings) set in DHCP server properties. These settings are stored in the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DHCPServer\Parameters

    .

    To restore the DHCP database
    1. Open the DHCP snap-in.
    2. In the console tree, click the DHCP server you want to configure.
    3. On the Action menu, click Restore.
    4. In the Browse For Folder dialog box, select the folder that contains the backup DHCP database, and then click OK.

    .

    Ace

    .


    Ace Fekay
    MVP, MCT, MCITP Enterprise Administrator, MCTS Windows 2008 & Exchange 2007 & Exchange 2010, Exchange 2010 Enterprise Administrator, MCSE & MCSA 2003/2000, MCSA Messaging 2003
    Microsoft Certified Trainer
    Microsoft MVP - Directory Services
    Complete List of Technical Blogs: http://www.delawarecountycomputerconsulting.com/technicalblogs.php

    This posting is provided AS-IS with no warranties or guarantees and confers no rights.

    FaceBook Twitter LinkedIn

    Monday, March 05, 2012 3:56 PM
  • Thanks Ace. I just tested the restore in DHCP snap-in using DHCP data recovered from systemstate backup but it was unsuccessful and got following error.

    "The Database was not restored correctly. No changes were made. For more information, please see Event Viewer on the specified server". When I checked the event log, I got this. It seems like the DhcpCfg file generated by backup procedure in DHCP snap-in has the registry information and it is needed to restore DHCP. Thoughts?

    Log Name:      System
    Source:        Microsoft-Windows-DHCP-Server
    Date:          3/5/2012 12:31:38 PM
    Event ID:      1019
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Description:
    The DHCP service failed to restore the DHCP registry configuration. The following error occurred:
    The system cannot find the file specified.

    Here were my steps to recover DHCP using systemstate backup:

    1. Run Winserver backup and restored all files in C:\Windows\System32\DHCP folder to an alternative location

    2. Performed restore following the steps

     "Open the DHCP snap-in.
     In the console tree, click the DHCP server you want to configure.
     On the Action menu, click Restore.
     In the Browse For Folder dialog box, select the folder that contains the backup DHCP database, and then click OK."


    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Monday, March 05, 2012 4:49 PM
  •  

    Hi,

    Thanks for posting here.

    Does this user account which performed these restore action have permission to write and modify the destination folder or in another word is this account a member of local Administrators group or the DHCP Administrators group on destination DHCP server?

    Event ID 1019 — DHCP Backup/Restore

    http://technet.microsoft.com/en-us/library/cc774807(WS.10).aspx

    Thanks.

    Tiger Li


    Tiger Li

    TechNet Community Support

    Tuesday, March 06, 2012 9:37 AM
  • Yes, the account used to restore DHCP are in local admin group. Again, It seems like the system state backup lack of DHCP registry information when compare it to the backup generated from DHCP managment console.


    This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Wednesday, March 07, 2012 3:42 PM