Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
recompose_pool:
stage: recompose
tags:
- windows
script:
- Write-Host "Connecting to Horizon"
- Connect-HVServer -Server $cs -User $csUser -Password $csPass -Domain $csDomain
- Write-Host "Refreshing Horizon Pool"
- Start-HVPool -Pool $poolName -Recompose -LogoffSetting FORCE_LOGOFF -ParentVM "$packer_vmName" -SnapshotVM "Created by Packer" -StopOnFirstError $true
- Write-Host "Disconnecting to Horizon"
- Disconnect-HVServer -Server $cs -Confirm:$false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment