After an upgrade of PVS from 7.13 to 7.15, or a downgrade of the PVS server from 7.13 to 7.6, the ELM was no longer able to connect to it. Testing credentials would fail. (Note, this probably happens in lots of other circumstances, but these are the two circumstances where we've seen this.)
If you look in the applayering.agent.log file you will see a log like this:
2017-07-24 10:32:09,808 ERROR 5 HandlerHelper: 'Application Error while processing 'Command' 'InvokePowerShellScriptCommand'': 'DefaultTitle="", MessageID="PowerShellSimpleError", {CategoryData={[PowerShellExceptionCategory { Command = "Add-PSSnapin -Name McliPSSnapIn; Mcli-Get Site -f siteId, siteName", Message = "Cannot load Windows PowerShell snap-in McliPSSnapIn because of the following error: The Windows PowerShell snap-in module C:\program files\citrix\provisioning services console\McliPSSnapIn.dll does not have the required Windows PowerShell snap-in strong name McliPSSnapIn, Version=7.6.3.9, Culture=neutral, PublicKeyToken=null.", ServerAddress = <null>, ExceptionType = "RemoteException" }]}' 2017-07-24 10:32:09,855 ERROR 5 HandlerHelper: Title: Error Message: Cannot load Windows PowerShell snap-in McliPSSnapIn because of the following error: The Windows PowerShell snap-in module C:\program files\citrix\provisioning services console\McliPSSnapIn.dll does not have the required Windows PowerShell snap-in strong name McliPSSnapIn, Version=7.6.3.9, Culture=neutral, PublicKeyToken=null. Details:
CD \Windows\Microsoft.NET\Framework64\v4.0.30319 .\InstallUtil.exe "C:\Program Files\Citrix\Provisioning Services Console\Citrix.PVS.Snapin.dll" CD \Windows\Microsoft.NET\Framework\v4.0.30319 .\InstallUtil.exe "C:\Program Files\Citrix\Provisioning Services Console\Citrix.PVS.Snapin.dll"
PVS Console found. Located 'Citrix.PVS.SnapIn' at version '7.13.0.13008' Cannot load Windows PowerShell snap-in Citrix.PVS.Snapin because of the following error: Could not load file or assembly 'file:///C:\\Program Files\\Citrix\\Provisioning Services Console\\Citrix.PVS.SnapIn.dll' or one of its dependencies. The system cannot find the file specified."