the script works fine when i run it manually and DCU installs updates but when i run it from SCCM it errors out:
Diagnostic
2019-01-15T12:51:53.8442829+01:00
Enter function
2
True
Usage: invcol [OPTION]... Options: -? for help [-outc=
] output xml file [-logc=
] error log xml file [-lang=
] [-enc=
] UTF-8 or UTF-16 [-ver] Displays version of all inventory modules [-type=
] hotplug or other type [-cfg=
] IC config file [-tc=1 to 10] Number of threads to be spawned. [-tp=1 to 3] 1 = low priority or 2 = normal priority or 3 = high priority [-list] Extract the configuration file [-sic -outc=
] output xml file for Static Inventory Collector
Normal
2019-01-15T12:51:53.8662182+01:00
CLI: Error: Check for updates ended. (System Scan failed)
Diagnostic
2019-01-15T12:51:53.8851674+01:00
Scan Completed: Exited Normally:True with exit code: 2
Do you have an internet proxy that blocks traffic running under SYSTEM context? When you test your script, are you using SYSTEM context or User Context?
I've had issues running DCU-CLI in a TS, but have been able to overcome it with "interesting" command lines. I have not seen your particular error though.
gwblok
3 Posts
2682
0
Posted January 31st, 2019 20:00
Do you have an internet proxy that blocks traffic running under SYSTEM context? When you test your script, are you using SYSTEM context or User Context?
I've had issues running DCU-CLI in a TS, but have been able to overcome it with "interesting" command lines. I have not seen your particular error though.