Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Recompose a single vm with powercli?

$
0
0

Need a bit of direction please.

I can get all info about a single vm, and the pool that it belongs to.

I can send a recompose to an entire pool

What I need to do is send a recompose to a single workstation.

 

Here are the scripts that I have been working with so far.

 

This gives me the machine name and the pool where this machine lives

ForEach ($vm in (Get-DesktopVM)) {If ($vm.user_displayname -match "joeuser") {Write-Host $vm.Name, $vm.pool_id}}

 

This will set the base image and snapshot for new machines that get created in the pool

Update-AutomaticLinkedClonePool -pool_id Train -parentvmpath "/vm/Discovered virtual machine/ViewComposerImages/General_Base" -parentsnapshotpath /08-28-2012/"08-28-2012 Train"

This will send a scheduled recompose to the entire pool

Get-DesktopVM -pool_id Train | Send-LinkedCloneRecompose -schedule "$RECTrain" -parentvmpath "/vm/Discovered virtual machine/ViewComposerImages/General_Base" -parentsnapshotpath /08-28-2012/"08-28-2012 Train" -forceLogoff $true -stopOnError $false

 

This pool contains 30 machines, what I need to do is send a recompose to just 1 machine in this pool

 

Thank you in advance for any assistance..


Viewing all articles
Browse latest Browse all 179681

Trending Articles



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