Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

Cannot run Import-DhcpServer or Backup-DhcpServer in Server 2012

$
0
0

Hi Folks,

We are moving to 2012 DC's. Things are going well except for importing the DHCP config from a 2008 non R2 server. I'm following the advice from this blog, although I am not importing to a failover configuration, just from a single server to another server.

I have run the Export-DhcpServer cmdlet successfully on the 2012 server to generate the dhcpexp.xml from the remote 2008 server. However, when I try to run the Import-DhcpServer cmdlet to import the configuration:

Import-DhcpServer –ComputerName mydc.mydomain.org -Leases –File C:\export\dhcpexp.xml -BackupPath C:\dhcp\backup\ -Verbose

it fails with the following error:

backup-dhcpserver : Failed to back up the database on server mydc.mydomain.org to c:\dhcpbackup.
At line:1 char:1
+ backup-dhcpserver -computername mydc.mydomain.org -path c:\dhcpbackup
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (mydc.mydomain.org:root/Microsoft/...P/PS_DhcpServer) [Backup-DhcpS
   erver], CimException
    + FullyQualifiedErrorId : WIN32 5,Backup-DhcpServer

I next tried not specifying the -BackupPath parameter to Import-DhcpServer, but it prompted me, so it is apparently mandatory. I then tried running the Backup-DhcpServer cmdlet, but it also fails with exactly the same error message. I have tried a variety of different paths, and fiddling with permissions on the the specified folders with no success.

Can anyone lend me a hand so I can get this wrapped up? Thanks alot,

ianc



Viewing all articles
Browse latest Browse all 5877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>