hi Richard, many thanks for responding. I did think initially it was permissions so I increased them for the test user.
- Added user as Full Access on folder structure
- Gave user owner permissions to folder structure.
- Gave user local admin…
I can run the script manually and it successfully creates to that folder structure when I specify it. I can see in the SCOM Task that it actually tries to open to C:\monitoring\Citrix\Log\TestName\sflauncher.log
I tried logging on as the user and creating folders and files with no problems. There are no pop ups when I run the script and I can see the json values being passed into SCOM.
I have now successfully(?) recreated the issue on 1 Windows 7 Desktop and 1 Server 2012 R2. Each of these I have tried with two different apps and a desktop. I have downloaded new json config files and Test-CitrixApp.ps1 files to try and rule out anything and am now very baffled…
Success log shown below and SCOM settings
Display Name CITRIX-NZ (Citrix Xen Desktop)
Full Path Name SERVERNAME\CITRIX-NZ (Citrix Xen Desktop)
Test Name CITRIX-NZ (Citrix Xen Desktop)
Configuration Path C:\MonitoringXenDesktop\Citrix
StoreFront URL https://vdi.company.co.nz/Citrix/ServerName
Resource Name SCOM Synthetic Desktop
Log File Name sflauncher.log
Timeout For SF Login Page 40
Timeout For SF Resources Page 50
Timeout For Session Login 60
Timeout For Other 30
Interval 300
Sync Time 00:01
[01/11/2017 15:12:44.346]: *************** LAUNCHER SCRIPT BEGIN ***************
[01/11/2017 15:12:44.350]: SiteURL: https://vdi.company.co.nz/Citrix/ServerName
[01/11/2017 15:12:44.351]: UserName: opsmgr_citrixlogon
[01/11/2017 15:12:44.353]: Password: *****
[01/11/2017 15:12:44.355]: ResourceName: SCOM Synthetic Desktop
[01/11/2017 15:12:44.358]: Creating Internet Explorer COM object
[01/11/2017 15:12:44.531]: Setting Internet Explorer visible
[01/11/2017 15:12:44.542]: Navigating to https://vdi.company.co.nz/Citrix/ServerName[01/11/2017 15:12:44.600]: Internet Explorer: WAIT
[01/11/2017 15:12:45.624]: Internet Explorer: WAIT
[01/11/2017 15:12:46.640]: Internet Explorer: WAIT
[01/11/2017 15:12:47.658]: Internet Explorer: WAIT
[01/11/2017 15:12:48.673]: Internet Explorer: WAIT
[01/11/2017 15:12:49.690]: Internet Explorer: WAIT
[01/11/2017 15:12:50.713]: Internet Explorer: WAIT
[01/11/2017 15:12:51.730]: Internet Explorer: WAIT
[01/11/2017 15:12:52.748]: Internet Explorer: WAIT
[01/11/2017 15:12:53.763]: Internet Explorer: WAIT
[01/11/2017 15:12:54.780]: Internet Explorer: WAIT
[01/11/2017 15:12:55.795]: Internet Explorer: WAIT
[01/11/2017 15:12:56.815]: Internet Explorer: WAIT
[01/11/2017 15:12:57.831]: Internet Explorer: WAIT
[01/11/2017 15:12:58.847]: Internet Explorer: WAIT
[01/11/2017 15:12:59.863]: Internet Explorer: WAIT
[01/11/2017 15:13:00.883]: Internet Explorer: WAIT
[01/11/2017 15:13:01.899]: Internet Explorer: WAIT
[01/11/2017 15:13:02.915]: Internet Explorer: WAIT
[01/11/2017 15:13:03.931]: Internet Explorer: WAIT
[01/11/2017 15:13:04.946]: Internet Explorer: WAIT
[01/11/2017 15:13:05.962]: Internet Explorer: WAIT
[01/11/2017 15:13:06.980]: Internet Explorer: WAIT
[01/11/2017 15:13:07.997]: Internet Explorer: WAIT
[01/11/2017 15:13:09.013]: Internet Explorer: WAIT
[01/11/2017 15:13:10.044]: Internet Explorer: WAIT
[01/11/2017 15:13:11.059]: Internet Explorer: WAIT
[01/11/2017 15:13:12.076]: Internet Explorer: WAIT
[01/11/2017 15:13:13.092]: Internet Explorer: WAIT
[01/11/2017 15:13:14.110]: Internet Explorer: WAIT
[01/11/2017 15:13:15.122]: Internet Explorer: WAIT
[01/11/2017 15:13:16.136]: Internet Explorer: WAIT
[01/11/2017 15:13:17.152]: Internet Explorer: WAIT
[01/11/2017 15:13:18.167]: Internet Explorer: WAIT
[01/11/2017 15:13:19.183]: Accessing DOM
[01/11/2017 15:13:19.201]: Detecting NetScaler Gateway or StoreFront login form…
[01/11/2017 15:13:19.205]: Try #1: WAIT
[01/11/2017 15:13:20.259]: Try #2: SUCCESS
[01/11/2017 15:13:20.261]: STOREFRONT DETECTED
[01/11/2017 15:13:20.312]: Getting Login button
[01/11/2017 15:13:20.315]: Getting UserName textbox
[01/11/2017 15:13:20.318]: Getting Password textbox
[01/11/2017 15:13:20.370]: Setting UserName ‘opsmgr_citrixlogon’
[01/11/2017 15:13:20.422]: Setting Password
[01/11/2017 15:13:20.480]: Clicking login button
[01/11/2017 15:13:20.520]: Getting SF resources page…
[01/11/2017 15:13:20.525]: Try #1: WAIT
[01/11/2017 15:13:21.581]: Try #2: SUCCESS
[01/11/2017 15:13:21.632]: Getting resource ‘SCOM Synthetic Desktop’…
[01/11/2017 15:13:21.832]: Try #1: SUCCESS
[01/11/2017 15:13:21.839]: Found 0 session(s) before clicking ‘SCOM Synthetic Desktop’
[01/11/2017 15:13:21.842]: Clicking resource ‘SCOM Synthetic Desktop’
[01/11/2017 15:13:21.850]: Verifying that session launched…
[01/11/2017 15:13:21.853]: Try #1: WAIT
[01/11/2017 15:13:22.859]: Try #2: WAIT
[01/11/2017 15:13:23.863]: Try #3: SUCCESS
[01/11/2017 15:13:23.865]: Found 1 sessions after clicking ‘SCOM Synthetic Desktop’
[01/11/2017 15:13:23.867]: Found wfica32.exe with PID 3700 for session launched
[01/11/2017 15:13:23.869]: Sleeping 30 seconds before logging off…
[01/11/2017 15:13:53.875]: Logging off sessions…
[01/11/2017 15:14:20.982]: Getting log off link…
[01/11/2017 15:14:21.036]: Try #1: SUCCESS
[01/11/2017 15:14:21.091]: Clicking log off link
[01/11/2017 15:14:21.111]: Quitting Internet Explorer
[01/11/2017 15:14:21.113]: Releasing Internet Explorer COM object
[01/11/2017 15:14:21.147]: *************** LAUNCHER SCRIPT END ***************
Kind Regards
Christian