Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 728

Unable to clone Physical Computer Profile in SCVMM 2012 R2

$
0
0

I am using SCVMM 2012 R2 Powershell cmdlet New-SCPhysicalComputerProfile to clone an existing Physical computer profile. 

Cmdlet help:
http://technet.microsoft.com/en-us/library/dn472863%28v=sc.20%29.aspx 

From the above link I see that a profile can be clone with following parameter set:
Parameter Set: CloneProfile
New-SCPhysicalComputerProfile [-Name] <String> -PhysicalComputerProfile <PhysicalComputerProfile> [-AnswerFile <Script> ] [-BypassVHDConversion <Boolean> ] [-Description <String> ] [-JobVariable <String> ] [-Owner <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

The command used and the error is:
----
> $vmmServer=Get-SCVMMServer -ComputerName 'myVMMServer'
> $existingProfile=Get-SCPhysicalComputerProfile -Name 'newPhysicalProfile'
> New-SCPhysicalComputerProfile -Name 'ClonedPhyProfile' -PhysicalComputerProfile $existingProfile -VMMServer $vmmServer 

New-SCPhysicalComputerProfile : Object reference not set to an instance of an object.
At line:1 char:1
+ New-SCPhysicalComputerProfile -Name 'ClonedPhyProfile' -PhysicalComputerProfile  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-SCPhysicalComputerProfile], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.NewPh
   ysicalComputerProfileCmdlet

-----
   Verified that $vmmServer and $existingProfile have correct values. Can somebody help me with this?

Regards,

Sunil


Viewing all articles
Browse latest Browse all 728

Trending Articles



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