Citrix Provisioning : How to update a vDisk Using Versioning Method

Citrix Provisioning : How to update a vDisk Using Versioning Method

AD Server: -

DHCP & DNS Server: -

SQL Server: -

PVS Server: -

XenCenter: -

Master Target machine: - WIN2K16

Test Machine: - VDI-05

Updating vDisks 

It is often necessary to update an existing vDisk so that the image contains the most current software and patches. Each time the vDisk is to be updated, a new version of that vDisk is created (VHD file) to capture the changes without changing the base vDisk image. Updating a vDisk involves the following: l Create a new version of the vDisk, manually or automatically. l Boot the newly created version from a device (Maintenance device or Update device), make and save any changes to the vDisk, then shut-down the device. l Promote the new version to Production. 

The following illustrates the general promotion of a vDisk update:

The availability of the updated version depends on the current promotion of that version (Maintenance, Test, or Production), and the type of device attempting to access it (Maintenance Device, Update Device, Test Device, or Production Device). 

Update Scenarios

The following vDisk update scenarios are supported:

 1 Manual UpdateAn administrator may choose to update a vDisk manually by creating a new version of that vDisk, and then using a Maintenance device to capture updates to that version. Manual updates are initiated by selecting the New button on the vDisk Versions dialog. The Access column on the vDisk Versioning dialog displays that the newly created version is currently under maintenance. While under maintenance, this version can only be accessed and updated by a single Maintenance device. Multiple Maintenance devices can be assigned to a vDisk. However, only one device can boot and access that version of the vDisk at any given time. During that time that Maintenance device will have exclusive read/write access. For details, refer to Manually Updating a vDisk Image.

2 Automated Update – Creating automated updates saves administration time and physical resources. Updates are initiated on-demand or from a schedule and are configured using vDisk Update Management. If updating automatically, the Access column on the vDisk Versioning dialog displays that the newly created version is currently under maintenance. While under maintenance, this version can only be accessed and updated by the one Update device to which it is assigned.

Note: vDisk Update Management is intended for use with Standard Image Mode vDisks only. Private Image Mode vDisks can be updated using normal software distribution tool procedures. Attempting to register a Private Image Mode vDisk for vDisk Update Management, or switching a vdisk that is already registered, will cause errors to occur.

1 Merge – Merging VHD differencing disk files can save disk space and increase performance, depending on the merge option selected. A merge update is initiated manually by selecting the Merge button on the vDisk Versions dialog, or automatically when the maximum vDisk versions count is reached.

Login to PVS server and open Citrix Provisioning Console

Click vDisk Pool -> Select vDisk and Right click and select Versions

Click  New 

Once you will create new version access will change to Maintenance -> Click done

Click to Device Collections -> Select collection Name 

Select master server -> Right click -> Properties

Click vDisks to check whether vDisk is attached or not,  Incase not attached just attached clicking on Add button.

If already vDisk attached -> Click General 

Drop down from type and select Maintenance -> Ok

Now Login to XenCenter -> Click on master target server and power it ON. 

Select 1 to boot using maintenance vDisk

System is still booting.

Once OS will load I shall install WinSCP and update to the existing machine using promote version method.

WinSCP has been installed on the master server.

Shutdown the master server and go to PVS server and click on vDisk Pool -> Right click on vDisk and click version

Select vDisk version that is newly created and click Promote

Select Test  -> OK

Now it has successfully promoted to Test

Go to device collection from vDisk and click collection -> select VM where you want to test new vDISK.

Right click VM go to properties -> from General tab drop down and select Test and click OK

Go to XenCenter and power on the machine where you want to test vDisk VDI-05 and power on

Click 1 to boot machine with test vDisk

VM is booting WIN16.2.avhd

Login to new server -> WinSCP has updated in another VM as well

Now next we need to promote versioning from test to production

Go to PVS -> click on Disk pool -> Select vDisk and right click -> Select versions

Select version that you want to promote from Test to production

Now vDisk access has changed to Production

Now login to PVS server -> Select  Device Collection -> Select Collection 

Right click to test VDI-05 -> Properties -> Select General Drop down from Type and select Production

Okay -> Now power on the test machine VDI-05 

Thank you now all done for vDISK update using versioning!

Custom Management Pack Create in SCOM 2019


How to create Custom Management Pack

Open SCOM Operation console

Click Authoring

Select Monitors

Search for Target or select from list

Here I am selecting Service Running State -> Double click on the service

Click on General Button to check the status, Currently Monitor is enabled

Click Overrides -> select for all objects of class: Activated APM Agent

Check marked on Enabled Parameter and change Override value from True to False

Don’t select any existing Management pack from the list 

Click New 

Type Management pack Name

Click Next -> Create

Click Apply and Okay

That’s All!

Script to create bulk users in windows Machine


Script for create bulk user in local machine

Login to the machine where you want to create  bulk user.

Open Windows PowerShell ISE

Copy below script and past it in PowerShell ISE like below

function create-account ([string]$accountName) {

 $hostname = hostname

 $comp = [adsi]"WinNT://$hostname"

 $user = $comp.Create("User", $accountName)



 $User.UserFlags[0] = $User.UserFlags[0] -bor 0x10000 #ADS_UF_DONT_EXPIRE_PASSWD flag is 0x10000


 # Create 30 administrator users named user1 ... user 30

for($i=23; $i -le 25; $i++){



  Get-LocalUser -Name TRAIN* | select FullName, Enabled, UserMayChangePassword, PasswordChangeableDate, PasswordExpires | Export-Csv c:\temp\user.csv -NoTypeInformation 




Note -: To change default password, you need to update in script line no 5

             To change number of users that need to create, update in script line no 10

             To change user name or Caps letter you need to update in script line no 11

New users will create and CSV file will export at the below path.

c:\temp\user.csv -NoTypeInformation 

What is Run As Account and How to create a Run As account and associate with a Run As profile

 Run as Account and Run as Profile

Basically run as account is a Windows account that can be associated with the rules and can use Windows authentication and plan basic digest simple or binary methods for authentication.

Run as Account defines which credentials will be used for certain actions that can be carried out by the operation manager Agent and these accounts centrally managed by the SCOM Console.

We assign dedicated account to execute or push task from SCOM operation console to client machine that is Run As Account, 

Run as Account is associated with Run as profile.  And run as profile is associated with workflow.

How to Create Run as Account

Login to SCOM Operation console -> Click Administration 

Right click and select Create Run as Account

Click Next

Select Account Type from Run as Account type:

Give Display Name and Description

Enter User name

And Password

Select security level as per your requirement

Click create

How to Associate Run as Account with Run as profile

Now go to Administration -> Click profiles 

Select profile from the list to associate Run as Account

Double click on profile

Click next

Click Add button -> Select account from Run As account drop down list

If you want to manage All target object with the same Run As account then click all target else a selected class.

Filter by:  Type object name 

Select Object and click Add

Click Save

Thank you all done!

Featured Post

HPE MSA 2040 configuration step by step

HPE MSA 2040 configuration Default IP range for HP SAN storage MSA 2040 is You need to connect your laptop and storage with...