Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


BobJ
  •  BobJ
  • Paid support Topic Starter
2018-09-24T20:05:55Z
In the midst of migrating VisualCron tasks from a very old installation to a Window Server 2016. Utilizing some of the MIcrosoft printer command VBS scripts to pause/unpause printers in scheduled tasks. When they run under Windows 2016, the command fails with an error 5 - access denied.

I have been able to verify that the prnqctl.vbs script works when run from an elevated command prompt. The domain account that I specify in Execute Task is specified to load with its profile (based on information I found on your forum). I also modified local security policy so that the account has right to "log on as a batch job", but regardless of these changes, the scheduled VisualCron task fails (and it fails if I manually execute the command from a conventional command prompt).

It certainly appears to be a rights issue, but I haven't found a way for VisualCron to run it successfully. Any thoughts on what I might be missing?
Sponsor
Forum information
BobJ
  •  BobJ
  • Paid support Topic Starter
2018-09-24T22:58:18Z
I should add that I was trying to execute a .bat file that had the cscript command and associated parameters.

If I change it so cscript is in the VisualCron Execute "command" and all the other parameters in the "arguments" field, it does work.

That's fine when I have a single command to execute, but there are times when I have to include other commands before and/or after printer control changes, so I prefer to execute a batch file.
Support
2018-09-25T09:25:05Z
Please confirm that the Credential you use in the Task is having "Load profile" checked.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top