Filtering users that don't have a property

I’d like to be able to get all of the users that don’t have an msRTCSIP-UserEnabled property at all in their AD account.

I’ve tried to do

get-aduser -filter {msRTCSIP-Enabled -eq $false}
and
get-aduser -filter {msRTCSIP-Enabled -ne $true}
, but I get nothing. I also tried
get-aduser -filter {msRTCSIP-Enabled -eq $true}
and I do get results.

When I check a user without SIP enabled, I find that they don’t even have the msRTCSIP-UserEnabled property. That makes me wonder, is there a way to filter for users that don’t have a specific attribute/property?

Please check if below works for you.

Get-ADUSer -Filter { msRTCSIP-UserEnabled -notlike '*' }

Daniel, that does it perfectly, can’t believe I didn’t think of it.

Thanks so much!