Random issue with a pre-logon script to remove Java - Incorrect function
I have a batch script set to run before a user logs in which runs many Java Uninstall MSI commands (forcibly removes all old Java versions). This works very well on most machines but I am getting this odd error on a few of them. This is the scripting log from that job...
Started: 03/19/2013 09:16:01
Finished: 03/19/2013 09:16:01
Elapsed Time: 0 second
Running as: SYSTEM Directory DOES exist: C:\ProgramData\Dell\KACE\\kbots_cache\packages\kbots\46 Error creating process: C:\ProgramData\Dell\KACE\\kbots_cache\packages\kbots\46\run_Java_Uninstall.bat : (1) Incorrect function. Error Code: 1 Status Code: 183
Checking if directory exists: C:\ProgramData\Dell\KACE\\kbots_cache\packages\kbots\46 Launching program: 'C:\ProgramData\Dell\KACE\\kbots_cache\packages\kbots\46\run_Java_Uninstall.bat' '' wait='false
Error creating process:...... .(1) Incorrect function.
Has anyone seen this before? There does not seem to be a pattern, all the workstations are basically the same Win 7 setup.
Any ideas are appreciated, thanks,