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

Password protection configuration backup

Post by matteu »

Hello,

How can I know with powershell if password protection is enabled or not ?
I don't find any way to know it.
Thanks for your help.
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Password protection configuration backup

Post by david.domask »

Hi @matteu

It's a property EncryptionOptions on object returned by Get-VBRConfigurationBackupJob cmdlet.

Code: Select all

PS C:\Users\Administrator> Get-VBRConfigurationBackupJob


Enabled             : True
Repository          : Veeam.Backup.Core.S3CompatibleRepositoryAdapter
ScheduleOptions     : Daily
RestorePointsToKeep : 10
EncryptionOptions   : True  #This property
NotificationOptions :
NextRun             : 10/24/2023 10:00:00 AM
Target              : config-backup-s3
Type                : ConfigurationBackup
LastResult          : Warning
LastState           : Stopped
Id                  : 99d1bf3d-e2e0-4bec-b2b3-820c0b87d212
Name                : Backup Configuration Job
Description         : Backup configuration job
David Domask | Product Management: Principal Analyst
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Password protection configuration backup

Post by matteu »

Hello,

Thanks for your answer but I'm not sure we talked about the same thing.
I saw this cmdlet but doesn't seems to return what I want.
Encryption is just for the backup configuration to be encrypted.

What I want to know if it's password lost protection is enabled or not.

You can have encryption enabled but no enterprise manager -> password lost protection will not be enabled.

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

Re: Password protection configuration backup

Post by oleg.feoktistov »

Hi @matteu,

This info gets pulled from the table that Get-VBRConfigurationBackupJob cmdlet doesn't access. I'll note it as a feature request. Meanwhile, try the workaround:

Code: Select all

[Veeam.Backup.Core.CCryptoKey]::IsLossProtectionEnabled()
Best regards,
Oleg
david.domask
Veeam Software
Posts: 1226
Liked: 322 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: Password protection configuration backup

Post by david.domask »

Ah, indeed I misunderstood the request. Thank you Oleg for the save :)
David Domask | Product Management: Principal Analyst
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Password protection configuration backup

Post by matteu »

Hello,

I just tested it.
It works perfectly.

Thanks
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 17 guests