impolement Get-BADPrincipalGroupMembership

master
lub 1 year ago
parent 8dea4a7f88
commit d4c99e770e

@ -75,6 +75,20 @@ function Get-BADComputer {
Get-ADComputer -Filter $filter -Properties $Properties -Server $Server @args
}
function Get-BADPrincipalGroupMembership {
param (
[Parameter(ValueFromPipeline)]
[Microsoft.ActiveDirectory.Management.ADAccount]
$ADObject
)
process {
write-host $ADObject
$server = $ADObject.DistinguishedName.Split(',DC=')[-2,-1] -join '.'
$ADObject | Get-ADPrincipalGroupMembership -Server $server
}
}
function Get-Feierabend {
param (
[Parameter(Position = 0)]

Loading…
Cancel
Save