-
- Novice
- Posts: 8
- Liked: never
- Joined: Jun 29, 2014 6:50 am
- Full Name: Thomas Particke
- Contact:
Global Settings via Powershell
Hello,
Im trying to set specific Settings on all our backup Server in all Locations via Powershell.
For example:
I want to set global E-Mail Settings, like "Notify on success".
I know I can do this with "invoke-command", can you give me a Close example ( for more than one Server ) for this?
thanks in advance..
Im trying to set specific Settings on all our backup Server in all Locations via Powershell.
For example:
I want to set global E-Mail Settings, like "Notify on success".
I know I can do this with "invoke-command", can you give me a Close example ( for more than one Server ) for this?
thanks in advance..
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
Global email settings in contrast to job specific ones are not configurable via our PowerShell snap-in. Thanks.
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jun 29, 2014 6:50 am
- Full Name: Thomas Particke
- Contact:
Re: [solved]Global Settings via Powershell
ohh... Jesus..
ok, thanks anyway.
ok, thanks anyway.
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
You can still make all existing jobs use job-specific notification settings, instead of global ones, and set the desired options for them via PS. Though, I understand that it's not exactly what you're looking for. Thanks.
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jun 29, 2014 6:50 am
- Full Name: Thomas Particke
- Contact:
Re: Global Settings via Powershell
Yes, but we want to set a Little bit more.
I give you an example
We have more than 30 Locations and want to Play around with throtteling Settings.
So this week we want to check out, what is if we set the throtteling to 2MB/s ....check the backups and logs and so on.
Next week we say, ok 2MB/s is not enough, we set to 4MB/s...on all Server, on all locations
If you cannot set this on a global Base via Poswershell or something else it is useless in a big Environment, My Opinion.
I still cannot understand , that its not possible to configure Veeam Backup Server with Enterprise Manager....
Is there any other way to solve such a Problem?
I give you an example
We have more than 30 Locations and want to Play around with throtteling Settings.
So this week we want to check out, what is if we set the throtteling to 2MB/s ....check the backups and logs and so on.
Next week we say, ok 2MB/s is not enough, we set to 4MB/s...on all Server, on all locations
If you cannot set this on a global Base via Poswershell or something else it is useless in a big Environment, My Opinion.
I still cannot understand , that its not possible to configure Veeam Backup Server with Enterprise Manager....
Is there any other way to solve such a Problem?
-
- Novice
- Posts: 8
- Liked: never
- Joined: Jun 29, 2014 6:50 am
- Full Name: Thomas Particke
- Contact:
Re: Global Settings via Powershell
Ok, I got it after a Little testing.
Is there anywhere a complete powershell list for all Settings that are possible like
with GenerationPolicy.SyncIntervalStartTime you can set the time ....etc?
Here is my Script so far
Is there anywhere a complete powershell list for all Settings that are possible like
with GenerationPolicy.SyncIntervalStartTime you can set the time ....etc?
Here is my Script so far
Code: Select all
#========================================================================
# Created with: SAPIEN Technologies, Inc., PowerShell Studio 2012 v3.1.28
# Created on: 23.04.2015 11:26
# Created by: Thomas.Particke@guh-gruppe.de
# Organization: GH Service IT
# Filename: VBRemote.ps1
#========================================================================
if (Test-Path .\VBRServer.txt){$VBRServer = GC .\VBRServer.txt} else {write-host "No VBRServer.txt..."; exit}
foreach ($Server in $VBRServer)
{
$Session = New-PSSession -Name VBRServer -ComputerName $Server
Write-Host "Accessing Backup Server $Server"
Invoke-Command -Session $Session -ScriptBlock {
Add-PSSnapin -Name VeeamPSSnapIn -ErrorAction SilentlyContinue
$Jobs = Get-VBRJob
Foreach ($Job in $Jobs) {
$JobOptions = $Job.GetOptions()
$JobOptions.NotificationOptions.SnmpNotification = $false #Default: $false
$JobOptions.NotificationOptions.SendEmailNotification2AdditionalAddresses = $true #Default: $false
$JobOptions.NotificationOptions.EmailNotificationAdditionalAddresses = "e-Mail;e-Mail;e-Mail" #Default: ""
$JobOptions.NotificationOptions.UseCustomEmailNotificationOptions = $true #Default: $false
$JobOptions.NotificationOptions.EmailNotificationSubject = "[%JobResult%] %JobName% (%VmCount% VMs) %Issues%" #Default: "[%JobResult%] %JobName% (%VmCount% VMs) %Issues%"
$JobOptions.NotificationOptions.EmailNotifyOnSuccess = $false #Default: $true
$JobOptions.NotificationOptions.EmailNotifyOnWarning = $true #Default: $true
$JobOptions.NotificationOptions.EmailNotifyOnError = $true #Default: $true
$JobOptions.NotificationOptions.EmailNotifyOnLastRetryOnly = $true #Default: $true
#$JobOptions.ViSourceOptions.VmAttributeName = "TestField1" #Default: "Notes"
#$JobOptions.ViSourceOptions.SetResultsToVmNotes = $true #Default: $false
#$JobOptions.ViSourceOptions.VmNotesAppend = $false #Default: $true
#$JobOptions.NotificationOptions
#$JobOptions.ViSourceOptions
# Copy Job Options
$JobOptions.GenerationPolicy.SyncIntervalStartTime = "19:55:00"
$JobOptions.GenerationPolicy.RetentionPolicyType = "Simple"
$JobOptions.GenerationPolicy.EnableDeletedVmDataRetention = $True
$JobOptions.GenerationPolicy.DeletedVmsDataRetentionPeriodDays = 30
$JobOptions.GenerationPolicy.SimpleRetentionRestorePoints = 7
$JobOptions.GenerationPolicy.EnableCompactFull = $False
#$JobOptions.GenerationPolicy.CompactFullBackupScheduleKind = Monthly
#$JobOptions.GenerationPolicy.CompactFullBackupDays = {Saturday}
$JobOptions.JobOptions.BackupCopyJobCanRunAnyTime = $True
# Local Job Options [Advanced]
$JobOptions.BackupStorageOptions.EnableDeletedVmDataRetention = $true
$JobOptions.BackupStorageOptions.RetainDays = 30
$JobOptions.BackupTargetOptions.TransformFullToSyntethic = $false
$JobOptions.BackupTargetOptions.TransformIncrementsToSyntethic = $false
# Local Job Options [Backup, mode]
$Job.SetOptions($JobOptions)
}
}
}
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
The best source of information regarding VB&R PS snap-in is our Help Center. However, you won't find there the list of all internal parameters and settings along with acceptable values.
You still can drill down to particular set of properties and use Get-Member commandlet to find out the acceptable type. Something like:
Thanks.
You still can drill down to particular set of properties and use Get-Member commandlet to find out the acceptable type. Something like:
Code: Select all
$Job.GetOptions().backupstorageoptions | Get-Member
EnableDeduplication Property bool EnableDeduplication {get;set;}
EnableDeletedVmDataRetention Property bool EnableDeletedVmDataRetention {get;set;}
EnableFullBackup Property bool EnableFullBackup {get;set;}
EnableIntegrityChecks Property bool EnableIntegrityChecks {get;set;}
KeepFirstFullBackup Property bool KeepFirstFullBackup {get;set;}
RetainCycles Property int RetainCycles {get;set;}
RetainDays Property int RetainDays {get;set;}
-
- Enthusiast
- Posts: 39
- Liked: 4 times
- Joined: Feb 26, 2014 4:42 am
- Full Name: Jed Parkes
- Contact:
[MERGED] Change Options/Notifications/Backup Storage
Is there a powershell command to change 'Options/Notifications/Backup Storage/Warm me when free disk space is below' setting ???
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Powershell to Change Options/Notifications/Backup Storag
Most of global options with the mentioned ones being no exception are not configurable via PowerShell. Thanks.
-
- Enthusiast
- Posts: 39
- Liked: 4 times
- Joined: Feb 26, 2014 4:42 am
- Full Name: Jed Parkes
- Contact:
Re: Powershell to Change Options/Notifications/Backup Storag
OK Thanks, can you add a feature request. I need to configure this on all of my Veeam server and having to do it manually is going to take a while.
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
Your voice is counted. However, we cannot guarantee whether it will be implemented in the nearest future, as priority is given in accordance with demand a feature generates among customers.
Thanks.
Thanks.
-
- Veeam Software
- Posts: 1818
- Liked: 655 times
- Joined: Mar 02, 2012 1:40 pm
- Full Name: Timothy Dewin
- Contact:
Re: Global Settings via Powershell
In addition to Vladimir his post, here is a dump of common parameters and sub parameters (with scripts that have been used for discovery, essentially using get-member)
Please try to use the cmdlets where possible as these might be subject to change & might not be complete/inacurate:
https://github.com/tdewin/best-practice ... l_dumps.md
Please try to use the cmdlets where possible as these might be subject to change & might not be complete/inacurate:
https://github.com/tdewin/best-practice ... l_dumps.md
-
- Enthusiast
- Posts: 39
- Liked: 4 times
- Joined: Feb 26, 2014 4:42 am
- Full Name: Jed Parkes
- Contact:
Re: Global Settings via Powershell
Do you know if the ability to edit the Global email settings via PowerShell is going to be added to v10 ?
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
It's too early to share any specifics regarding next product releases. Thanks.
-
- Enthusiast
- Posts: 43
- Liked: 7 times
- Joined: Nov 02, 2018 9:13 am
- Contact:
Re: Global Settings via Powershell
Weird that it is still not in Powershell. We are configuring Veeam servers very often, and we would like to automate this.
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
The demand has been that high to justify implementing it - we have been more focused on covering new features. Thanks!
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Feb 21, 2020 4:10 am
- Full Name: Matt Navarette
- Contact:
[MERGED] Enhancement Request - Get/Set Global Settings
We MUST have the ability to Get/Set Global Settings in Veeam B&R. I've seen many posts as far back as 2015 asking for these changes to be implemented.
This is a giant hindrance to us that want to implement a proper automated rollout. Not to mention a huge PITA if we ever decide to switch SMTP providers, or enforce SNMP.
@veremin Please let me know if this is soon to be on the road map.
This is a giant hindrance to us that want to implement a proper automated rollout. Not to mention a huge PITA if we ever decide to switch SMTP providers, or enforce SNMP.
@veremin Please let me know if this is soon to be on the road map.
-
- Product Manager
- Posts: 14840
- Liked: 3086 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Global Settings via Powershell
Hello,
and welcome to the forums. I merged your request with the existing ones.
Unfortunately we cannot share the roadmap, but count your request as noted!
Best regards,
Hannes
and welcome to the forums. I merged your request with the existing ones.
Unfortunately we cannot share the roadmap, but count your request as noted!
Best regards,
Hannes
-
- Enthusiast
- Posts: 43
- Liked: 7 times
- Joined: Nov 02, 2018 9:13 am
- Contact:
Re: Global Settings via Powershell
Is this still not in v10?
-
- Product Manager
- Posts: 14840
- Liked: 3086 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Global Settings via Powershell
https://helpcenter.veeam.com/docs/backu ... ml?ver=100 - not in the navigation on the left side and also not in the product
-
- Product Manager
- Posts: 20407
- Liked: 2299 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Global Settings via Powershell
Will keep this requirement in mind, while working on the next product release.
So, thank you for the feedback - consider your voice counted.
So, thank you for the feedback - consider your voice counted.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Feb 21, 2020 4:10 am
- Full Name: Matt Navarette
- Contact:
Re: Global Settings via Powershell
Any idea if this is going to get road mapped? I have to make major changes to our SMTP settings again.
-
- Veeam Software
- Posts: 2010
- Liked: 670 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Global Settings via Powershell
Planned for v11. Thanks!
Who is online
Users browsing this forum: No registered users and 8 guests