Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 234493

Re: Recompose a single vm with powercli?

$
0
0

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.


Viewing all articles
Browse latest Browse all 234493

Trending Articles



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