Skip to content

Test-PPUserPugMember : Cannot validate argument on parameter ' #8

@Hesitant2286

Description

@Hesitant2286

Tried running PowerPug on 3 different AD forrests, but all fail with the following error:

Test-PPUserPugMember : Cannot validate argument on parameter 'PugMembership'. The argument is null or empty. Provide an
argument that is not null or empty, and then try the command again.
At C:\Users\ACCNAME\Documents\WindowsPowerShell\Modules\PowerPUG\2024.11.11\PowerPUG.psm1:1357 char:67

  • ... $PugMember = Test-PPUserPugMember -User $_ -PugMembership $PugMembers
  •                                                           ~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Test-PPUserPugMember], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Test-PPUserPugMember

Method invocation failed because [System.DirectoryServices.AccountManagement.UserPrincipal] does not contain a method n
amed 'op_Addition'.
At C:\Users\ACCNAME\Documents\WindowsPowerShell\Modules\PowerPUG\2024.11.11\PowerPUG.psm1:1585 char:5

  • $ADAdmins = $Environment.ForestAdmins + $Environment.DomainAdmins
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (op_Addition:String) [], RuntimeException
    • FullyQualifiedErrorId : MethodNotFound

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions