Author Posts

September 20, 2016 at 3:50 pm

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?

September 20, 2016 at 4:01 pm

Please check if below works for you.

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

September 20, 2016 at 4:05 pm

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

Thanks so much!