@XDtipster - Introducing the new XenDesktop XD7 POSH Module

11:19 AM
@XDtipster - Introducing the new XenDesktop XD7 POSH Module -

Do you know that with the release of a new high XD7 module administrative POSH was introduced for the first time? As XDS snapins regular POSH, this new module ie XenDesktop aptly titled PowerShell module can be used to configure and administer a site XD

The support files for the new module can be found at the following location :.

C: Program Files Citrix XenDesktopPoshSdk Module Citrix.XenDesktop.Admin.V1 Citrix.XenDesktop.Admin

Note: above location also includes two nice help files that explain the purpose of the new module and how the module can be used to perform initial configuration of a site.

snapins only used before we XD7 to extend the shell but Microsoft now recommends using snapins modules (which are amortized) we must follow suit and the new XenDesktop module is one the first examples of what I have come across.

So how we interact with the new module? Basically, all you have to do is load the module (it is not automatically loaded when launching via Citrix POSH Studio). I personally prefer to use a standalone instance of POSH anyway and manually load the snapins XD so additional manual step does not really bother me. For all the guys crazy script out there, I guess it's a moot point anyway ...

So now that you know about the new POSH module, go ahead and follow the steps below to view and download the new XenDesktop POSH Module:

Step 1: to see the POSH modules available on your system run the following command from a window POSH:

Get-module -ListAvailable

Step 2: to import the XenDesktop module in existing POSH session, use the chain next:

import-module -name Citrix.XenDesktop.Admin -verbose

once loaded check (the verbose switch you applets that are loaded just shows) on some of the cmdlets available that can be used to configure and administer your site XD ...

one of the great advantages to the snapins use of modules is that modules can contain POSH commands as cmdlets, functions and worksflows and may also contain variables, aliases and suppliers so you can return the information stored in different parts of the database by using a single command rather than 2 or 3 separate controls

Example : Running Get-XDSite in XD7 returns information from the database that would normally only retreivable using a couple of cmdlets:

Get-BrokerSite (Site Name, LicenseInformation)

Get-BrokerController (controllers )

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

Previous
Next Post »
0 Komentar