PowerShell script exchange
Post Reply
darren.flatman
Influencer
Posts: 15
Liked: 2 times
Joined: Mar 02, 2022 10:07 am
Full Name: Darren Flatman
Contact:

Powershell script to get encryption password details

Post by darren.flatman » 1 person likes this post

Want to create a Powershell script that can get the details for the encryption passwords
The idea is for the script to run every 15 mins and to raise an alert if the password is changed
So need to be able to get the last modified details
I found a command for credentials but it does not include the encryption password
Mildur
Product Manager
Posts: 8735
Liked: 2293 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Powershell script to get encryption password details

Post by Mildur »

Hi Darren

Egor mentioned the Event IDs in this post. You can query the event logs with PowerShell.

Have a look at this topic.
Another user wrote a script to get the encryption password age from the Event Logs.

Thanks
Fabian
Product Management Analyst @ Veeam Software
Dossing
Influencer
Posts: 19
Liked: 2 times
Joined: May 17, 2021 11:40 am
Full Name: Søren Døssing
Location: Denmark
Contact:

Re: Powershell script to get encryption password details

Post by Dossing » 1 person likes this post

Feature request:
Regarding the Get-VBREncryptionKey, the only way to get a a result back from this cmdlet is to query on Description.
I would like to ask that it is possible to query on Id, and ModificationDataUtc aswell.
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Powershell script to get encryption password details

Post by oleg.feoktistov »

Noted. You can also use native powershell filtering capabilities:

Code: Select all

Get-VBREncryptionKey | where {$_.ModificationDataUtc -like $date}
Thanks!
darren.flatman
Influencer
Posts: 15
Liked: 2 times
Joined: Mar 02, 2022 10:07 am
Full Name: Darren Flatman
Contact:

Re: Powershell script to get encryption password details

Post by darren.flatman »

Thanks Oleg that worked
Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests