Creating Citrix Zone Objects

Creates a Citrix Zone object in the current or in the specified context.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


Hint: Citrix Zone objects can only be created underneath Citrix Farm objects.


Create the Citrix Zone "Chicago" in the context of the Citrix Farm "XA65Farm" underneath "Managed Users & Computers\solys.local\Citrix\XenApp":


New-EmdbCitrixZone "emdb:\rootDSE\Managed Users & Computers\solys.local\Citrix\XenApp\XA65Farm\Chicago"


Create the Citrix Zone "Paris" in the current context:


Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Citrix\XenApp\XA65Farm"

New-EmdbCitrixZone "Paris"


Create the Citrix Zone "London" in the context "Managed Users & Computers\solys.local\Citrix\XenApp\XA65Farm" using the cmdlet New-Item:


New-Item -Path "emdb:\rootDSE\Managed Users & Computers\solys.local\Citrix\XenApp\XA65Farm" -Name "London" -ItemType "CitrixZone"


Create the Citrix Zone "Munich" in the current context using the cmdlet New-Item:


Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Citrix\XenApp\XA65Farm"

New-Item "Munich" -ItemType "CitrixZone"


Hint:  In the context of the emdb drive, the cmdlet New-Item provides the additional parameter -DelayCreation. Using this parameter creates the object on the client side only and doesn't propagate the changes to the DSMDB instantly. Now you can manipulate properties of this object and finally the changes can be propagated to the DSMDB by calling the method Create().


Example:


Cd "emdb:\rootDSE\Managed Users & Computers\solys.local\Citrix\XenApp\XA65Farm"

$MyNewZone = New-Item "Cologne" -ItemType "CitrixZone" -DelayCreation

$MyNewZone.Description = "The brand new XenApp 6.5 Zone for Cologne"

$MyNewZone.Create()