diff --git a/Get-BackupCapacityPlanningData.ps1 b/Get-BackupCapacityPlanningData.ps1 index 9d276c6..16b1e7e 100644 --- a/Get-BackupCapacityPlanningData.ps1 +++ b/Get-BackupCapacityPlanningData.ps1 @@ -31,11 +31,10 @@ Function Use-Path { } # Import MSP360 module -#Import-MSP360Module -Import-Module MSP360 +Import-MSP360Module # Get all backup plans -$BackupPlans = Get-MBSBackupPlan -OutputType Raw | Where-Object { $_.Name -eq "TestPlan" } +$BackupPlans = Get-MBSBackupPlan -OutputType Raw # Iterate over all backup plans ForEach ( $plan in $BackupPlans ) {