Quantcast
Channel: VMware Communities : Unanswered Discussions - VMware View
Viewing all articles
Browse latest Browse all 5983

SendLinkedCloneRecompose FAILED Powershell

$
0
0

Just upgraded from view 6.1 to 6.2.3.  I have a script that runs a recompose monthly on our non-persistent linked clones.  This is running from a remote server using windows task scheduler.

It was working fine until i did the upgrade to 6.2.3  Everything else is working fine.  The parent vm old snap-shot gets deleted correctly.  New snap-shot is created fine and the pool in the view admin console is pointing to the new snap before I kick off sendlinkedclonerecompose.

I also had to run the add-snapin.ps1 in "C:\Program Files\VMware\VMware View\Server\extras\PowerShell\add-snapin.ps1" on the connection server to register the vmware cmd applets. Powershell version on the remote server i am running the WTS is version 4.0.  The ps version on the connection server is 3.0.  The exact error i am getting whether it is remote or on the connection server is list here.

 

PowershellService::SendLinkedCloneRecompose FAILED, error=Provider

org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

    + CategoryInfo          : InvalidResult: (vmware.view.pow...dCloneRecompos

   e:SendLinkedCloneRecompose) [Send-LinkedCloneRecompose], Exception

    + FullyQualifiedErrorId : PowershellService::SendLinkedCloneRecompose FAIL

   ED,vmware.view.powershell.cmdlets.SendLinkedCloneRecompose

    + PSComputerName        :servername.com

 

I am looking for help on resolving this issue.  This script was working fine until i upgrade to 6.2.3

Is there something that I am missing?  of change with this upgrade.

Any help would be appreciated.

 

This is the block of code

$schedule = $schedule.GetEnumerator() | Sort-Object Name

    foreach ($t in $schedule){

        $time = (Get-Date).AddMinutes($t.Name)

        Write-Host "`nIn" $t.Name "minutes (" -NoNewline -ForegroundColor Cyan

        Write-Host $time.ToShortTimeString() -NoNewline -ForegroundColor Cyan

        Write-Host ")`n**********************************" -ForegroundColor Cyan

#       $t.Value | Format-Columns -Property Name -Autosize -MaxColumn 8  | Out-Host

        if (-not $Simulate){

            $attempted,$successful,$unchanged = 0,0,0

            $t.Value | Group-Object -Property pool_id | % {

                $poolID = $_.Name

                $options = @{

                    parentVMPath = $poolData[$poolID].parentVMPath

                    parentSnapshotPath = $poolData[$poolID].snapshot

                    schedule = $time

                    forceLogoff = $forceLogoff

                    stopOnError = $stopOnError

                }

                $result = $_.Group | Send-LinkedCloneRecompose @options

                $attempted += $_.Count

                $successful += $result.vmsToRecompose

                $unchanged += $result.vmsUnchanged

            }

            Write-Host ("`n  {0,-13} {1}" -f "Attempted:",$attempted) -ForegroundColor Yellow

            Write-Host ("  {0,-13} {1}" -f "Successful:",$successful) -ForegroundColor Green

            Write-Host ("  {0,-13} {1}" -f "Unchanged:",$unchanged) -ForegroundColor Magenta

        }

    }


Viewing all articles
Browse latest Browse all 5983

Trending Articles



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