PxPlus User Forum
Main Board => Discussions => Language => Topic started by: michaelgreer on June 17, 2021, 09:46:19 AM
-
We have a user trying to run a program via the Task Scheduler on windows and a printer open to a *windev* device is throwing an error 12. Is there a limitation on using *windev* when running something in this fashion?
-
Michael
When running, the scheduled task will have the credentials of the user account you have set up for the task
If you use something like LocalSystem, then be aware that this user does not have any network access, which may explain the error 12 if your *windev* points to a shared printer device.
HTH
Regards,
-
Thanks Stephan! I am running as administrator with highest permissions. The spooler *is* however configured for a shared pritner.
-
Then you should try to open a session as administrator account, run a ProvideX prompt, and try to open the *windev* device
If it yields an error 12, then it will yield the same error when running as a scheduled task
You may need to manually mount the shared printer / queue in your program with something like
invoke "net use ..."
HTH
-
Stephan,
Even though the scheduled task was set to run as administrator, it was not set up by user administrator. When we deleted it and re-added under the administrator login all was good, so you were pointing in the right direction.
Thanks!