I have managed to setup both a XenApp and XenDesktop Test. Have tested them both successfully with the test ps1 script from the test machine. THe parameters are successfully passed to SCOM and I can see that it is failing.However the error is that the execute script does not run. I see the error in the event log as
execute-Test.ps1:Cannot bind argument to parameter ‘String’because it is an empty string
I am struggling to see any typo in the json file and am running out of ideas?
I managed to get this error message to disappear after recreating all files, however the execute-test.ps1 now runs and just says adding state:bad.
There is no log file created however and I cannot see any other errors to assist in diagnosing? I have tried modifying the powershell script to add the log file to a different location which works when I run everything manually. How do I know it is even running the Test-CitrixApp.ps1 ?
(additional information supplied in this answer has been moved to the question)
It’s hard to know exactly what’s happening, but here are some thoughts:
The Execute-Test.ps1: Started event log entry indicates that the MP script is running OK. It would be useful to add some additional logging at this point so we can see the parameters (new issue added to GitHub: https://github.com/squaredup/Community.Citrix.LogonSim.MP/issues/1).
The Execute-Test.ps1: Finished with output ‘1’ event log entry indicates that the Test-CitrixApp.ps1 script is running. That error code comes from this line:
So that’s good news.
If no log file is created then it sounds like the Test-CitrixApp.ps1 is failing to create the log. The most likely cause of this would be permissions.
Does the user account that is executing the script (the Citrix Logon Simulator User Account) have access to the configured log path (by default it’s C:\Monitoring\Citrix\Logs)?
Those permissions are not mentioned in the docs but I think they will be needed.
Hope this helps!
I’m having this exact same error (Execute-Test.ps1 bad or whatever). Did you ever get this resolved?
Citrix Simulated Logon Failed…
Date and Time: