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?