This article describes how to update the XenDesktop Master Image Pooled machine types using PowerShell.
These commands are tested on XenDesktop 5.6 and VMware environment.
Like I said in my pervious article, “PowerShell is a very powerful scripting language that can help automate many aspects of maintaining and deploying a XenDesktop environment.” This saves a lot of time for the Citrix administrators.
Whenever we run a powershell script or command first thing that we should do is to load the Citrix Snapins. If you do not have the Citrix snapins download it from
Step 5: Update the pooled catalog with the new master image using the command
Publish-ProvMasterVmImage along with the Provisioning scheme Uid and the Master Image VM path, this command updates the master image associated with the provisioning scheme.
Using all the above mention commands we will build a script to update the Pooled desktop.
To take the snapshot of the master image
#To take the snapshot of the master image#Load The Citrix SnapinsAsnp Citrix.*#Declare the variables$XDserver = "Server Name"$filename = "MasterImage_Snapshot_$(get-date -f MMM-d-yyyy-hh-mm)"$description = "MasterImage_Sanpshot_$(get-date -f MMM-d-yyyy-hh-mm)"# To take Snapshot of the Master VDINew-HypVMSnapshot -AdminAddress '$XDserver' -LiteralPath 'XDHyp:\connections\Path of the VM\VMNAME.vm' -SnapshotName "$filename" -SnapshotDescription "$description"