@XDtipster - Creating Policies HDX With POSH

11:18 AM
@XDtipster - Creating Policies HDX With POSH -

Hi everyone, as promised last week on @xdtipster twitter feed, here is the detailed blog on how to create conditions of the HDX by POSH [

I guess the first thing to note is that Citrix HDX policies can be managed in both POSH XD5.x and XD7.x. What makes this possible is the Citrix Group Policy POSH supplier that was introduced in XD5.

By default, once the Citrix snap-ins are loaded ( citrix ASNPs * ) you will be able to see that provider and readers associated using Get-PSProvider

Click on screenshot to see the picture

Note that by default, you will policy POSH access to both Citrix Drives Group:

1.LocalGPO (refers to the local GPO)

2.Templates (refers to the Templates tab under the policy node Citrix studio - applicible to XD7.x only btw)

Running Get-PSDrive will return a little more information on the drives themselves. ..

Click on screenshot to see the picture

to access one of these default records all what you have to do is change directory in the drive itself, for example, CD Models:

once at the root of the drive, you can then view the existing data structure, edit existing objects or create new objects, but more about that later ...

I was looking at this over the last week and the first question I am asked when looking at available POSH Drives via the Citrix group policy provider was "Why not mount the DomainGPO object or object policies in the default DB? "For me, they are two of the most useful to the right card discs. To be honest, I actually wondered if they were still available to ride at all ...

Well, after a bit of trial and error, I thought that they can in fact be mounted and that the're is actually a very good reason for not mounted by default. It turns out that it is for reasons scalabilty in heavy scripting environments where delays may be encountered connect to AD and or controller.

So how do we create a new POSH drive and mount either the DomainGPO or political DB object? Creation POSH of a new drive is the easy part, because of course there are many instructions and online help file for new PSDrive steps through the process very clearly. the hardest part is to determine exactly what settings to use to mount the above mentioned items.

This was a little difficult, but during my investigations I found that once inside one of the Citrix Group Policy drives I could run newborn PSDrive Help -Full command and show me exactly how to create a new PSDrive using Citrix items available:

Click on screenshot to view full image

As you can see, based on the output of the aid, the list of available objects (data structures) for mounting on a drive include:

1.DomainGPO

2.LocalGPO

3.Controller (policy object DB Site)

4.Templates (HDX Poliocy object Model)

notes : the FarmGPO option is invalid (valid option only for legacy XenApp)

as an example, you can use the following command to create a new drive POSH called XDPOL that points to a controller and turn the political object in DB:

New PSDrive -Name XDPOL -PSProvider CitrixGroupPolicy -Root - Controller DC1

Click on screenshot to see the picture

to display the stored existing data in the new PSDrive track cd xdpol: and press the return and use the dir and cd ordered to take to the data structure:

Click on screenshot to see the picture

here you can create your site policies POSH by using a combination of different ie controls cd dir New- Point Set-ItemProperty ...

Example

step 1: Create a new GPO using New-item -Name (why not XDTipster ...)

Click on screenshot to see the picture

Step 2: Enable access to local App by using the Set-ItemProperty cmdlet with path, name and value of the parameters as shown below:

Click on screenshot to see the picture

Step 3: Refresh Citrix studio to view the site HDX newly created policy based:

Click on screenshot to see the picture

Reference:

to create a new POSH drive and mount the DomainGPO object to manage AD HDX policies based POSH by running the following command:

New PSDrive -Name XDGPO -PSProvider CitrixGroupPolicy -Root -DomainGPO

Best regards
Mick Glover (aka Tipster XD)
Specialist preparation main, global support preparation [EMEA]
Citrix Systems, Inc.
Follow @xdtipster

Previous
Next Post »
0 Komentar