PowerShell script exchange
Post Reply
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Reset notification configuration

Post by matteu »

Hello,

Is it possible to reset the SMTP configuration to it's default with powershell?
If I use disable-vbrnotification it only disable it but the values are still there (smtp server, from, to, authentication, port, ...) .

I would like to "reset" all veeam configuration to it's default and if I just disable it, I need to use the GUI because if authentication is used, I can't remove the credentials and I would like to have empty smtp sever name, from and to fields

Thanks for your help.
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Reset notification configuration

Post by oleg.feoktistov »

matteu,

Unfortunately, no way to do it through official cmdlets, but you can try the workaround below to reset global mail options:

Code: Select all

$defaultMailOptions = [Veeam.Backup.Model.CMailOptions]::CreateDefault()
[Veeam.Backup.Core.SBackupOptions]::SaveMailOptions($defaultMailOptions)
Best regards,
Oleg
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Reset notification configuration

Post by matteu »

Maybe it could be added on next version ?
I see syslog feature is new implemented and come with a remove cmdlet. Maybe it's possible to improve the old one :) ?

I just test it and It's working fine thanks :)
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Reset notification configuration

Post by oleg.feoktistov »

Yes, I also noted it for vNext. Thanks!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 16 guests