Community forum

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


jm
  •  jm
  • Paid support Topic Starter
2011-04-04T09:37:17Z
Hello,

Trying to remote execute a batch file from my visual cron server (2003), to a 2008 R2 server.
When the task is run either scheduled or manually from VC it reports success, but it doesn't actually run on the remote server.
The task runs 2 batch files - one checks if a drive is present and if true calls a second batch file to run the backup. The backup is to export the dhcp scopes to a local drive - and I have added the service account to dhcp administrators.
Using a local admin user account (service account is a domain account & local admin on both servers) for the task. I have tried my account as well (domain admin) but same result.
When I manually run the batch file while logged on to the 2008 server it runs ok, and it also runs ok if I do a run as the service account.
I have tried pointing to \\server\c$\scripts\file.bat or \\server\share\scripts\file.bat
with the same result
Because this is running remotely it's running as background execution.
Has anyone come across this type of thing before?
I think it's due to the server being hardened quite heavily, I'm going to test on a vanilla 2008 R2 to see what happens. These batch files work fine from visual cron when pointing to a 2003 R2 server.

Thanks

Sponsor
Forum information
Support
2011-04-04T09:38:57Z
Do you get a PID in output?

Try to create a simple batch file that just writes the current time stamp to a local file. Does that work?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jm
  •  jm
  • Paid support Topic Starter
2011-04-04T23:30:41Z
Hi Henrik,

Unfortunately this doesn't work either.
I tried creating a couple simple batch files and the same thing. I can run locally on the 2008 R2 server ok but not remotely using VC.
There is always a PID in output each time I run these, and the VC task reports success.
I'll try on base 2008 R2 server with no GPO and see what happens.

Thanks
jm
  •  jm
  • Paid support Topic Starter
2011-05-11T06:47:13Z
My apologies Henrik,
The problem turned out to be my scripts.
I needed to specify the complete path when calling another batch file from within a batch file, eg CALL c:\scripts\..

There has been no issue running VC jobs in 2008 R2

Please remove this post if you think it will cause confusion for other people.

Cheers
Support
2011-05-11T07:01:14Z
No problem. Thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top