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).
-
- Service Provider
- Posts: 50
- Liked: 15 times
- Joined: Nov 15, 2016 3:38 pm
- Full Name: Bart van de Beek
- Contact:
-
- Veeam Software
- Posts: 2097
- Liked: 310 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
Could you use "runas" within the scripts to specify credentials?
Joe
Joe
-
- Product Manager
- Posts: 20406
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Feature Request v9.5 - Scheduled Tasks or Pre-/Post Scri
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.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.
Who is online
Users browsing this forum: AdsBot [Google], Semrush [Bot] and 20 guests