Set up Remote Powershell for XenDesktop discovery

Set up Remote Powershell for XenDesktop discovery

Summary

Powershell remoting needs to be configured on the Citrix XenDesktop broker before FNMP/Inventory Manager can interrogate it for information about the VDI infrastructure it manages.

Synopsis

Powershell remoting needs to be configured on the Citrix XenDesktop broker before FNMP/Inventory Manager can interrogate it for information about the VDI infrastructure it manages.

Discussion

Remoting is a new feature to Powershell v2.0. It is required by the Citrix Powershell SDK from XenDesktop v5.

The WinRM service must first be installed if it is not already present. Operating systems from Windows 7 and Server 2008 R2 will include the service, but you must download it and install it manually if the server is running Vista and earlier versions of Server 2008.
 
Once WinRM is installed, launch a Powershell v2.0 session (admin rights are required) and enter the command
 
Enable-PSRemoting
 
Say 'yes' to all prompts.
 
Next you will need to add ourselves to the Trusted Hosts. This can also be accomplished from the Powershell session:
 
cd wsman:
cd localhost\client
Set-Item TrustedHosts <IM Server>
 
(Where <IM Server> is the name of the machine from which IM will run).
 
Now you will need to restart the winRM service:
 
Restart-Service winrm
 
Finally you will need to adjust the remote execution policy. We recommend that you set the policy to require that remote scripts be signed:
 
Set-ExecutionPolicy remotesigned
 
If the Citrix XenDesktop broker does not have internet access you will need to relax this to unrestricted:
 
Set-ExecutionPolicy unrestricted
 
This should be sufficient to allow FNMP/IM to connect to the broker and use the Citrix Powershell SDK to extract all necessary data.
Labels (2)
Was this article helpful? Yes No
No ratings
Comments

Can this powershell script be exposed anywhere on the beacon or app server? Can it be opened and viewed?

@dbecker are you referring to the PS script used by the beacon to remotely collect XenDesktop inventory?

If so, you can find it under the path C:\Program Files (x86)\Flexera Software\Inventory Beacon\RemoteExecution\InventoryXenDesktop.ps1 on any of your beacons.

It can be opened in any text editor.

HTH,

Joseph

Version history
Revision #:
2 of 2
Last update:
‎Jun 28, 2020 05:54 PM
Updated by:
 
Contributors