Discussions specific to the Microsoft Hyper-V hypervisor
Post Reply
TheOnlyWizard17
Influencer
Posts: 13
Liked: 3 times
Joined: Nov 15, 2016 3:38 pm
Full Name: Bart van de Beek
Contact:

Feature Request v9.5 - Scheduled Tasks or Pre-/Post Scripts

Post by TheOnlyWizard17 » Jan 06, 2017 8:17 pm

As of version v9.5, you cannot specifiy any credentials for Pre-/Post Scripts in Jobs. Nicer would be to be able to provide Credentials, much like you already can specify (from the "managed" Credentials). This would allow you to write and use scripts that can do network-access. Right now, by default, VBR runs under the NT AUTHORITY\SYSTEM context, which does not have network-access, so any attempts to use it, for example, a simple Get-VM -ComputerName <Server>) would fail. Awkward part is that Veeam will state at Job-Run that your script was exectuted successfully, which in fact, is the reality, since Veeam does not know any networking-related commands inside your script actually failed.

The Pre-/Post are like "traditional" Pre-/Post in the sense that you cannot schedule them in any way, not inside the Job-time or outside of it. Perhaps it would be nice to have a new Job-Type, for example a Script Job, which would give you more flexibility to alter/prepare your environment for whatever you need before, during or after backups/Replications. I do realize Windows has the Task Scheduler for this, but having everything backup-related in one place together would be nicer (and as such could also be "replicated"/Copied using a Configuration Backup File Copy Job, for exmaple to your offsite VBR-location).

jmmarton
Veeam Software
Posts: 1652
Liked: 223 times
Joined: Nov 17, 2015 2:38 am
Full Name: Joe Marton
Location: Chicago, IL
Contact:

Re: Feature Request v9.5 - Scheduled Tasks or Pre-/Post Scri

Post by jmmarton » Jan 08, 2017 12:08 am

Could you use "runas" within the scripts to specify credentials?

Joe

veremin
Product Manager
Posts: 16867
Liked: 1429 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Feature Request v9.5 - Scheduled Tasks or Pre-/Post Scri

Post by veremin » Jan 09, 2017 11:53 am

Awkward part is that Veeam will state at Job-Run that your script was exectuted successfully, which in fact, is the reality, since Veeam does not know any networking-related commands inside your script actually failed.
I think that additional verification here would not harm. Based on the state of executed networking-related command, script should generate either success or failure error code. Thanks.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], devalian, mv@cloudio.dk and 22 guests