-
- Enthusiast
- Posts: 42
- Liked: 1 time
- Joined: Apr 07, 2021 5:42 am
- Full Name: Jan Gross
- Contact:
Disabled accounts
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?
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?
-
- Enthusiast
- Posts: 42
- Liked: 1 time
- Joined: Apr 07, 2021 5:42 am
- Full Name: Jan Gross
- Contact:
Re: Disabled accounts
For completeness, here is the result of backup job...
-
- Veeam Software
- Posts: 3195
- Liked: 774 times
- Joined: Oct 21, 2011 11:22 am
- Full Name: Polina Vasileva
- Contact:
Re: Disabled accounts
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!
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!
-
- Enthusiast
- Posts: 42
- Liked: 1 time
- Joined: Apr 07, 2021 5:42 am
- Full Name: Jan Gross
- Contact:
Re: Disabled accounts
Thank you,
Script works perfectly!
Thank you,
Jan
Script works perfectly!
Thank you,
Jan
-
- Influencer
- Posts: 11
- Liked: 1 time
- Joined: May 18, 2012 2:44 am
- Full Name: Andrew Porter
- Contact:
Re: Disabled accounts
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
Andrew
Who is online
Users browsing this forum: No registered users and 15 guests