When I run the Test-Citrixapp.ps1 script manually I get an error “Username textbox not found” This is from a Windows 10 Client with Internet Explorer 11.
We are now able to launch an app using Powershell on our test machine but when we move it to SCOM via the json we are getting a consistent critical. Also, I’ve noticed the log file does not get written to when the SCOM agent launches it.
Yes the powershell script works fine manually but with the MP can’t seem to report anything but “bad” for result. There are no errors though. We did this with the service account with success. When SCOM tries to run it no log file ever gets created so I suspect there’s a path issue somewhere that’s bombing it out but again no errors.
I’m wondering if our build or version is different than maybe yours. Do you have your mp file somewhere that I could try?
This is what I'm seeing... (which launches fine when you run the mycitrixapp ps1 file manually as the service account configured in scom for the profile.
are you trying to get the log from the SCOM task or directly from the server? as there is an issue with path naming on the task, also can you send over what your config file looks like?
I guess the server. I’m not sure where I’d get it from the scom task? The log file only gets created when you run the ps1 script manually. When SCOM tries to run it on the machine the log file doesn’t get created. Here’s the json:
c:\Monitoring\Citrix\Logs is the path and this folder is empty. If I don’t create a “Notepad” folder in this Logs folder or an sflauncher.log file manually then I do get additional errors from the monitor. However, once I create these it doesn’t cause the log file to get updated.
That’s the one thanks, looking at this particular the resource you are trying to test (Notepad ImageRight) has a space and this confuses the script as it adds this as a parameter so you need to insert it as string using ‘’, in your config file add its as this
“resourceName”: “‘Notepad ImageRight’”
I actually use the CSV config file (because i monitor multiple resources on one file) i’ve attached an example
Wow! It works now. Now in my logs folder I see an sfcontent.html file. Do I need to do something with this? Also, how do I have one agent run multiple apps?
Thank you for your help David. You have no idea how much this means to us.
ok the log file is getting written now… Both are showing this at the end:
[05/11/2018 10:27:14.105]: Try #30: WAIT [05/11/2018 10:27:15.386]: Exception caught by script [05/11/2018 10:27:15.402]: Login button not found [05/11/2018 10:27:15.402]: At C:\Monitoring\Citrix\Scripts\Test-CitrixApp.ps1:213 char:9 + throw “Login button not found” + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [05/11/2018 10:27:15.418]: Quitting Internet Explorer [05/11/2018 10:27:15.433]: Releasing Internet Explorer COM object [05/11/2018 10:27:15.465]: *************** LAUNCHER SCRIPT END ***************