Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

Hi,

 

Using the Quest cmdlets for powershell i would like to query users who have the attribute msExchHideFromAddressLists a "not set"

 

I use this code the find the users who have the option as true and it works.

 

get-aqduser - ldapfilter '(msExchHideFromAddressLists=TURE)

 

this doesnt work for not set

 

get-aqduser - ldapfilter '(msExchHideFromAddressLists=not set)

 

Does anyone know what i would need to put please?

 

Thanks

Posted (edited)

EDIT: is a Null value - use * instead. Notes are always handy :)

 

Oh, sorry to hear that :) you heading back out to Oz? I'm migrating to Canada in a few weeks, another Rochdalian fleeing to better climes :D

Edited by DT2
Posted
I was under the impression that this was a boolean value... :confused:

 

Oh, sorry to hear that :) you heading back out to Oz? I'm migrating to Canada in a few weeks, another Rochdalian fleeing to better climes :D

 

I couldnt get a visa so im here for now :)

Posted (edited)

That's a poor do mate, sorry to hear that.

I had some family move out there, and they had a hard time of it with visas and jobs getting pulled from under them.

Canada is so much easier, it has to be said.

 

Darren

Edited by DT2
Posted
Im back in Rochdale :)

 

False is a thrid option that can be set so wont work :)

 

Not exactly "pretty", but can't you do it like this:

 

(&(msExchHideFromAddressLists<>TRUE)(msExchHideFromAddressLists<>FALSE))

 

So it should only accept those who aren't true or false, aka "3rd option"

 

Steve

Posted
Not exactly "pretty", but can't you do it like this:

 

(&(msExchHideFromAddressLists<>TRUE)(msExchHideFromAddressLists<>FALSE))

 

So it should only accept those who aren't true or false, aka "3rd option"

 

Steve

 

invalid filter error :)

Posted
Apologies, with my edit it's probably been over looked: is a Null value - use * instead.

 

DT

 

That gives the same results asif true was being used.

Posted

it's used to search for null values, being that.

 

(!msExchHideFromAddressLists=*)

 

the ldap filter to find null values is by negating ('!' is the equiv of 'not') a value of anything (e.g. '*')

 

Perhaps should read my notes fully and thoroughly :doh:

  • Thanks 1
Posted

Failing that, try having a look at powergui.org, that's where some of my powershell notes are compiled from. Some very useful info there.

 

DT

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...