Skip to content

Object Categories and TestScript #54

@dbeugger

Description

@dbeugger

I have problems to get my own Object Categories working with TestScript. The logic in TestScript did not filter.

I tried your example

@{
    Name = 'DomainController'
    ObjectClass = 'computer'
    Property = @('PrimaryGroupID')
    TestScript = { $args[0].PrimaryGroupID -eq 516 }
    LDAPFilter = '(&(objectCategory=computer)(primaryGroupID=516))'
}

This way a got all DC's. Then i changed in TestScript the number to 517, I expected no DC, but i got all again.
I changed it toTestScript = { $false }, the same result.
Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions