-Added negations to some -GroupScope and -GroupProperty values
This commit is contained in:
parent
783bff3cc0
commit
d9e9231755
|
|
@ -8751,11 +8751,12 @@ Switch. Return users with '(adminCount=1)' (meaning are/were privileged).
|
|||
.PARAMETER GroupScope
|
||||
|
||||
Specifies the scope (DomainLocal, Global, or Universal) of the group(s) to search for.
|
||||
Also accepts NotDomainLocal, NotGloba, and NotUniversal as negations.
|
||||
|
||||
.PARAMETER GroupProperty
|
||||
|
||||
Specifies a specific property to search for when performing the group search.
|
||||
Possible values are Security, Distribution, and CreatedBySystem.
|
||||
Possible values are Security, Distribution, CreatedBySystem, and NotCreatedBySystem.
|
||||
|
||||
.PARAMETER Domain
|
||||
|
||||
|
|
@ -8919,12 +8920,12 @@ Custom PSObject with translated group property fields.
|
|||
[Switch]
|
||||
$AdminCount,
|
||||
|
||||
[ValidateSet('DomainLocal', 'Global', 'Universal')]
|
||||
[ValidateSet('DomainLocal', 'NotDomainLocal', 'Global', 'NotGlobal', 'Universal', 'NotUniversal')]
|
||||
[Alias('Scope')]
|
||||
[String]
|
||||
$GroupScope,
|
||||
|
||||
[ValidateSet('Security', 'Distribution', 'CreatedBySystem')]
|
||||
[ValidateSet('Security', 'Distribution', 'CreatedBySystem', 'NotCreatedBySystem')]
|
||||
[String]
|
||||
$GroupProperty,
|
||||
|
||||
|
|
@ -9076,8 +9077,11 @@ Custom PSObject with translated group property fields.
|
|||
$GroupScopeValue = $PSBoundParameters['GroupScope']
|
||||
$Filter = Switch ($GroupScopeValue) {
|
||||
'DomainLocal' { '(groupType:1.2.840.113556.1.4.803:=4)' }
|
||||
'NotDomainLocal' { '(!(groupType:1.2.840.113556.1.4.803:=4))' }
|
||||
'Global' { '(groupType:1.2.840.113556.1.4.803:=2)' }
|
||||
'NotGlobal' { '(!(groupType:1.2.840.113556.1.4.803:=2))' }
|
||||
'Universal' { '(groupType:1.2.840.113556.1.4.803:=8)' }
|
||||
'NotUniversal' { '(!(groupType:1.2.840.113556.1.4.803:=8))' }
|
||||
}
|
||||
Write-Verbose "[Get-DomainGroup] Searching for group scope '$GroupScopeValue'"
|
||||
}
|
||||
|
|
@ -9087,6 +9091,7 @@ Custom PSObject with translated group property fields.
|
|||
'Security' { '(groupType:1.2.840.113556.1.4.803:=2147483648)' }
|
||||
'Distribution' { '(!(groupType:1.2.840.113556.1.4.803:=2147483648))' }
|
||||
'CreatedBySystem' { '(groupType:1.2.840.113556.1.4.803:=1)' }
|
||||
'NotCreatedBySystem' { '(!(groupType:1.2.840.113556.1.4.803:=1))' }
|
||||
}
|
||||
Write-Verbose "[Get-DomainGroup] Searching for group property '$GroupPropertyValue'"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue