Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Migrate DHCP to Server 2008 R2 PowerShell command

193 views
Skip to first unread message

Marco Shaw [MVP]

unread,
Apr 2, 2009, 6:06:59 PM4/2/09
to
DangerMaus wrote:
> I was able to figure it out. There is a typo in the MS article for this.
> Instead of -DestinationPhysicalAddress it should be -TargetPhysicalAddress.
>
> -dm

What article might that be? I'll see if it can be fixed...

Marco

--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com

huongnguyen

unread,
Jun 8, 2010, 12:53:21 PM6/8/10
to

Please see the following post: http://www.vistax64.com/powershell/219999-migrate-dhcp-server-2008-r2-powershell-command.html

DangerMau wrote:

Migrate DHCP to Server 2008 R2 PowerShell command
02-Apr-09

I have been playing with the Windows Server 2008 R2 migration cmdlets in
PowerShell and I am getting an error when trying to import DHCP configuration
data.
I stopped the DHCP Server serivec and then ran this command on my source
server:
Export-SmigServerSetting ???featureID DHCP ???User All ???Group ???path
\\SEA-DC-02\DHCPData ???Verbose

I stopped the DHCP Server service and then run this command on my
destination server (note: I have tried putting the physicaladdress values in
quotes and still recieve an error):
Import-SmigServerSetting -featureid DHCP ???User All ???Group
???SourcePhysicalAddress 00-15-5D-01-66-08 ???DestinationPhysicalAddress
00-15-5D-01-66-03 ???Force -path \\SEA-DC-02\DHCPData ???Verbose

I get this error message:

Import-SmigServerSetting : Cannot bind parameter 'Feature'. Cannot convert
value "-DestinationPhysicalAddress" to type
"Microsoft.Windows.ServerManager.Migration.Commands.Feature". Error: "Invalid
cast from 'System.String' to
'Microsoft.Windows.ServerManager.Migration.Commands.Feature'."
At line:1 char:25
+ Import-smigserversetting <<<< -featureID DHCP -User All -Group -IPConfig
All -SourcePhysicalAddress "00-15-5D-01-66-08" -DestinationPhysicalAddress
"00-15-5D-01-66-03" -Force -Path \\SEA-DC-02\DHCPData -Verbose
+ CategoryInfo : InvalidArgument: (:)
[Import-SmigServerSetting], ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Windows.ServerManager.Migration.Commands.Import SvrMigSettingCommand

I was able to successfully migrate IP configuration from the same source
server to this destination server so I know the basic process works.
any ideas?

-dm

Previous Posts In This Thread:

On Thursday, April 02, 2009 1:02 PM
DangerMau wrote:

Migrate DHCP to Server 2008 R2 PowerShell command
I have been playing with the Windows Server 2008 R2 migration cmdlets in
PowerShell and I am getting an error when trying to import DHCP configuration
data.
I stopped the DHCP Server serivec and then ran this command on my source
server:
Export-SmigServerSetting ???featureID DHCP ???User All ???Group ???path
\\SEA-DC-02\DHCPData ???Verbose

I stopped the DHCP Server service and then run this command on my
destination server (note: I have tried putting the physicaladdress values in
quotes and still recieve an error):
Import-SmigServerSetting -featureid DHCP ???User All ???Group
???SourcePhysicalAddress 00-15-5D-01-66-08 ???DestinationPhysicalAddress
00-15-5D-01-66-03 ???Force -path \\SEA-DC-02\DHCPData ???Verbose

I get this error message:

Import-SmigServerSetting : Cannot bind parameter 'Feature'. Cannot convert
value "-DestinationPhysicalAddress" to type
"Microsoft.Windows.ServerManager.Migration.Commands.Feature". Error: "Invalid
cast from 'System.String' to
'Microsoft.Windows.ServerManager.Migration.Commands.Feature'."
At line:1 char:25
+ Import-smigserversetting <<<< -featureID DHCP -User All -Group -IPConfig
All -SourcePhysicalAddress "00-15-5D-01-66-08" -DestinationPhysicalAddress
"00-15-5D-01-66-03" -Force -Path \\SEA-DC-02\DHCPData -Verbose
+ CategoryInfo : InvalidArgument: (:)
[Import-SmigServerSetting], ParameterBindingException
+ FullyQualifiedErrorId :
CannotConvertArgumentNoMessage,Microsoft.Windows.ServerManager.Migration.Commands.Import SvrMigSettingCommand

I was able to successfully migrate IP configuration from the same source
server to this destination server so I know the basic process works.
any ideas?

-dm

On Thursday, April 02, 2009 4:06 PM
DangerMau wrote:

I was able to figure it out. There is a typo in the MS article for this.
I was able to figure it out. There is a typo in the MS article for this.
Instead of -DestinationPhysicalAddress it should be -TargetPhysicalAddress.

-dm

"DangerMaus" wrote:

On Thursday, April 02, 2009 6:06 PM
Marco Shaw [MVP] wrote:

Re: Migrate DHCP to Server 2008 R2 PowerShell command
DangerMaus wrote:

What article might that be? I'll see if it can be fixed...

Marco

--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com


Submitted via EggHeadCafe - Software Developer Portal of Choice
Load Testing ASP.NET Applications with Visual Studio 2010
http://www.eggheadcafe.com/tutorials/aspnet/13e16f83-4cf2-4c9d-b75b-aa67fc309108/load-testing-aspnet-appl.aspx

huongnguyen

unread,
Jun 8, 2010, 12:55:09 PM6/8/10
to

DangerMau wrote:

-dm

-dm

-dm

"DangerMaus" wrote:

Marco

On Tuesday, June 08, 2010 12:53 PM
Huong Nguyen wrote:

There is a typo in the Import cmldet syntax

Submitted via EggHeadCafe - Software Developer Portal of Choice

MSChart For VB.Net
http://www.eggheadcafe.com/tutorials/aspnet/45729dc8-c102-4dc6-9aa7-4f6246763650/mschart-for-vbnet.aspx

0 new messages