Hi,
Running in a small challange when running the following part of the script
$Groups = Get-ADGroup -Filter * -SearchBase $SearchbaseShare -Properties Name, members
$Results = foreach( $Group in $Groups ){
Get-ADGroupMember -Identity $Group |
ForEach-Object{ [pscustomobject]@{
GroupName = $Group.Name
Name = $_.Name}
}}
When running the script I get the data of group wich have a member. But the groups in the searchbase wich don't have a member aren't showwing up.
Hopefully someone van put me in a direction to solve this.
Thank's in advance
Roel Knippen