Maintain control of your Microsoft 365 data
Post Reply
Pagrossman
Enthusiast
Posts: 42
Liked: 1 time
Joined: Apr 07, 2021 5:42 am
Full Name: Jan Gross
Contact:

Disabled accounts

Post by Pagrossman »

We have all backup jobs managed automatically by the PowerShell scripts.
We have only one issue and it is not an issue of PowerShell.

When we create a set of accounts and group by the following command...:
$Accounts = (Get-VBOOrganizationUser -Organization (Get-VBOOrganization -Name $name) -Type User)

...we will get also account without mailbox, disabled accounts, etc...

Is it possible to filter the query for getting only active users with mailbox?
Pagrossman
Enthusiast
Posts: 42
Liked: 1 time
Joined: Apr 07, 2021 5:42 am
Full Name: Jan Gross
Contact:

Re: Disabled accounts

Post by Pagrossman »

For completeness, here is the result of backup job... :(
Image
Polina
Veeam Software
Posts: 2981
Liked: 708 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: Disabled accounts

Post by Polina »

Hi Jan,

VB365 doesn't know in advance if a user has a valid M365 license/mailbox or not. This information is only received after the job starts and when users are being resolved. However, you can use the following script to remove the unneeded users from the job: https://github.com/VeeamHub/powershell/ ... ersFromJob

Thanks!
Pagrossman
Enthusiast
Posts: 42
Liked: 1 time
Joined: Apr 07, 2021 5:42 am
Full Name: Jan Gross
Contact:

Re: Disabled accounts

Post by Pagrossman » 1 person likes this post

Thank you,

Script works perfectly!

Thank you,

Jan
aporter
Influencer
Posts: 11
Liked: 1 time
Joined: May 18, 2012 2:44 am
Full Name: Andrew Porter
Contact:

Re: Disabled accounts

Post by aporter »

We were also getting warnings about accounts without mailboxes when we specified a group of users to be backed up, so we decided to backup the entire organization and then exclude a specific group of users using an AD group. This way we can add any users who should not be backed up to this AD group using scheduled scripts and/or manually as needed.

Andrew
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests