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

Hyper-V specific discussions

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

Veeam Logoby TheOnlyWizard17 » Fri 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).
TheOnlyWizard17
Influencer
 
Posts: 13
Liked: 3 times
Joined: Tue Nov 15, 2016 3:38 pm
Full Name: Bart van de Beek

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

Veeam Logoby jmmarton » Sun Jan 08, 2017 12:08 am

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

Joe
jmmarton
Veeam Software
 
Posts: 812
Liked: 89 times
Joined: Tue Nov 17, 2015 2:38 am
Location: Chicago, IL
Full Name: Joe Marton

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

Veeam Logoby v.Eremin » Mon 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.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 966 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to Microsoft Hyper-V



Who is online

Users browsing this forum: No registered users and 8 guests