Monitor-ADGroupMembership icon indicating copy to clipboard operation
Monitor-ADGroupMembership copied to clipboard

SearchScope parameter error

Open EddieKnight1 opened this issue 7 years ago • 1 comments

When adding the -SearchScope parameter with any of the available options (Base, OneLevel or Subtree), powershell returns the following error:

Monitor-ADGroupMemberShip.ps1 : Parameter set cannot be resolved using the specified named parameters. At line:1 char:1

EddieKnight1 avatar Dec 21 '17 10:12 EddieKnight1

Can you share the full command that you use ?

-SearchScope only works with Organizational unit parameters, see this line: https://github.com/lazywinadmin/Monitor-ADGroupMembership/blob/master/Monitor-ADGroupMemberShip.ps1#L285

So it might be related to that.

lazywinadmin avatar Feb 10 '18 17:02 lazywinadmin