Symptoms

When you scan a Citrix XenDesktop Site you see the following error

"Could not load file or assembly 'System.Management.Automation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."



Cause

The Citrix XenDesktop Site Agent uses Microsoft Windows PowerShell to gather information from the remote site. The error is seen when Microsoft Windows PowerShell 2.0 or above is not installed on the machine running the XIA Configuration Client.



Resolution

Install Windows PowerShell version 2.0 or above on the machine running the XIA Configuration Client.