Skip to content

Commit

Permalink
Fixed bug where -All was including B2C components as well
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Mar 26, 2021
1 parent 69d5196 commit 0528420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Invoke-AADExporter.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Function Invoke-AADExporter {

if($All) {$Type = @("All")}
$global:TenantID = (Get-MgContext).TenantId
$global:Type = $Type
$global:Type = $Type #Used in places like Groups where Config flag will limit the resultset to just dynamic groups.

if (!$ExportSchema) {
$ExportSchema = @(
Expand Down Expand Up @@ -555,7 +555,7 @@ Function Invoke-AADExporter {
foreach ($item in $ExportSchema) {
$typeMatch = Compare-Object $item.Tag $Type -ExcludeDifferent -IncludeEqual
$hasParents = $Parents -and $Parents.Count -gt 0
if( ($Type -contains 'All' -or $typeMatch)) {
if( ($typeMatch)) {
$outputFileName = Join-Path -Path $Path -ChildPath $item.Path

$spacer = ''
Expand Down

0 comments on commit 0528420

Please sign in to comment.