I have been trying to recompose a single linked clone with the View PowerCLI as well.
I have written a script that takes two parameters: "Pool Display Name" and "linked clone machine name"
Param(
[Parameter(Mandatory=$true)]
[String]$targPool,
[Parameter(Mandatory=$True)]
[String]$targVM
)
IF ($targPool -ne $NULL)
{
$targPoolObj = Get-Pool -DisplayName $targPool
}
IF ($targVM -ne $NULL)
{
$targVMObj = Get-DesktopVM -name $targVM
}
Send-LinkedCloneRecompose -schedule (Get-Date) -Machine_id $targVMObj.machine_id -parentVMPath $targPoolObj.ParentVMPath -parentSnapshotPath $targPoolObj.ParentVMSnapshotPath
The script runs without error, but the result I get is this:
VmsToRecompose VmsUnchanged
-------------- ------------
0 1
I am still looking into why this is happening.