Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Private
  • Views: 49
  • Last Modified:

Can't run a batch from UNC path in Task Scheduler

Hi,

Trying to run a batch via task scheduler but it won't run.  On the 'Actions' tab i put this for the 'Program/script' field:  \\opus\hyperion\automation\run_triggers.bat

Note:  The \\opus\hyperion\automation directory is on a SAN not a server.  I tried mapping the \\opus\hyperion drive to Z and then:

Z:\automation\run_triggers.bat

Still won't execute.  Could I use NET USE or something like that?
0
elwayisgod
Asked:
elwayisgod
  • 3
  • 3
2 Solutions
 
QlemoC++ DeveloperCommented:
Is it a normal user account you run the task under? Certain computer accounts are restricted in having no network access. And you can't use drives mapped in your interactive user session.
0
 
elwayisgodAuthor Commented:
User account has full access.
0
 
QlemoC++ DeveloperCommented:
What's the error message or task execution status?
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
Lionel MMSmall Business IT ConsultantCommented:
Can you run this from a command prompt please and post the results; from a dos prompt type
\\opus\hyperion\automation\run_triggers.bat
and then tell us what you get
0
 
elwayisgodAuthor Commented:
It was due to a Environment variable on DEV server that was on TEST and PROD.  Sorry for confusion, I'm not a Windows Server guru :)
0
 
elwayisgodAuthor Commented:
Thanks for responses and help troubleshooting.
0
 
QlemoC++ DeveloperCommented:
Did we really help? If not, the question should get deleted.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now