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

Get VM exclusion

Post by matteu »

Hello,

On V12 on the main menu, there is a "VM Exclusions" tab.
How could I get them with powershell ?

I don't find the cmdlet.

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

Re: Get VM exclusion

Post by oleg.feoktistov » 1 person likes this post

Hi,

VM exclusions are not yet supported in Powershell, planned for vNext. As a workaround, you can get excluded objects with this method:

Code: Select all

$exclusions = [Veeam.Backup.DBManager.CDBManager]::Instance.Objs.GetAllDisabledObjects()
foreach ($exclusion in $exclusions) {
    $object = [Veeam.Backup.Core.CHierarchyObj]::Find($exclusion.ObjectId)
    $object | select Id, Name, Platform
}
Best regards,
Oleg
matteu
Veeam Legend
Posts: 725
Liked: 118 times
Joined: May 11, 2018 8:42 am
Contact:

Re: Get VM exclusion

Post by matteu »

Thanks for your answer !
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests