|
|
|
@ -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)]
|
|
|
|
|