Jump to content
Welcome to our new Citrix community!
  • 0

Powershell merge-pvsdisk status


Mike Athalone

Question

My apologies in advance if this was posted to the wrong forum. 

Environment:

VMWare 5.5

XenApp 7.13

Windows 2008R2 and 2012R2

 

I am writing a powershell script to prep our gold images for our patching process. The basic process is

  1. Verify how many versions exist
  2. Create a new maintenance disk version
  3. Boot the target in maintenance mode.

I would like to merge disks to a new base if we reach six versions prior to booting the target. I have found in the past that the new versions will corrupt if I have more than one merge running at a time. Thus I would like to run each in serial. My question, is there a way to identify the status of a merge to base within powershell or identify when a merge is complete? 

 

Thanks in advance

Mike

Link to comment

2 answers to this question

Recommended Posts

  • 1

You can query the PVS tasks that are running (state 0)

 

To Clear any tasks that have completed: >  Clear-PvsTask -SiteName YourSiteName
then to query active tasks: > Get-PvsTask

 

TaskId         : 3
SiteId         : 12345678-a9a9-aaaa-8888-123456789abc
SiteName       : YourSiteName
Handle         : 12597
ServerFqdn     : yourserver.fqdn.local
Ip             : 192.168.1.16
Port           : 6898
StartTime      : 7/24/2018 2:32:36 PM
ExpirationTime : 7/24/2018 2:32:36 PM
State          : 0
CommandType    : Run
Command        : MergeDisk
MapiException  :
Results        :

  • Like 2
Link to comment
  • 0
On 4/10/2018 at 11:38 PM, Mike Athalone said:

My apologies in advance if this was posted to the wrong forum. 

Environment:

VMWare 5.5

XenApp 7.13

Windows 2008R2 and 2012R2

 

I am writing a powershell script to prep our gold images for our patching process. The basic process is

  1. Verify how many versions exist
  2. Create a new maintenance disk version
  3. Boot the target in maintenance mode.

I would like to merge disks to a new base if we reach six versions prior to booting the target. I have found in the past that the new versions will corrupt if I have more than one merge running at a time. Thus I would like to run each in serial. My question, is there a way to identify the status of a merge to base within powershell or identify when a merge is complete? 

 

Thanks in advance

Mike

Hi Mike, 

Im looking at producing the same script, Did you manage to finish the script? Would you mind sharing your example..? Many Thanks

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...