This blog will be of interest to both scripters and programmers who wish to use the XenApp 6 SDK to configure a farm remotely.
By now, those who have been following my blog should have gotten
their feet wet in the XenApp 6 PowerShell SDK. But for those familiar
with MFCOM, you are probably wondering what happened to a major bit of
functionality that MFCOM had: the ability to remotely configure a farm
with a script that runs on a different computer. I have alluded to this
upcoming blog a few times so I hope people will not be disappointed!
When we started implementing the XenApp 6 SDK, we knew that this
would be a major requirement. We also had a very aggressive schedule in
which to complete our SDK. At the time, we also knew that Microsoft
was planning to introduce automatic remoting capability for PowerShell.
Putting 2 + 2 together, we decided to focus on getting the command
implementation right, and trust in the availability of PowerShell
Remoting to solve the remote management side of things.
Indeed, PowerShell 2.0 was released by the time we shipped the XenApp
6 SDK, and for the most part it does meet the remoting needs of our
SDK. It does have a much more complex configuration than we would have
hoped, and we did find one major limitation that we unfortunately do not
have a good workaround for yet; but overall, PowerShell Remoting
delivers a comprehensive remoting capability for the XenApp 6 SDK.
First of all, about the limitation I mentioned: we discovered that
PowerShell Remoting does not work when invoked from a service with
limited privileges, such as a web service running under the control of
IIS. We did not have time to resolve this issue prior to the release of
XenApp 6 nor the XenApp 6 SDK. If this is the scenario you are facing,
the only workarounds available at the moment are to use the
undocumented and unsupported XACOM API, or to write your own elevated
service through which you delegate calls to the XenApp SDK. I assure
you we will fix this by the next release of XenApp.
To read the whole article click here