Scripts Thread, Poweshell query help in Coding and Web Development; Hi,
Using the Quest cmdlets for powershell i would like to query users who have the attribute msExchHideFromAddressLists a "not ...
28th May 2012, 03:20 PM #1
Poweshell query help
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.
this doesnt work for not set
get-aqduser - ldapfilter '(msExchHideFromAddressLists=TURE)
Does anyone know what i would need to put please?
get-aqduser - ldapfilter '(msExchHideFromAddressLists=not set)
28th May 2012, 03:24 PM #2
How's sunny Oz? Missing Rochdale much??
28th May 2012, 03:25 PM #3
Im back in Rochdale
False is a thrid option that can be set so wont work
28th May 2012, 03:29 PM #4
28th May 2012, 03:30 PM #5
I couldnt get a visa so im here for now
Originally Posted by DT2
28th May 2012, 03:36 PM #6
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.
Last edited by DT2; 28th May 2012 at 03:37 PM.
28th May 2012, 03:49 PM #7
Not exactly "pretty", but can't you do it like this:
Originally Posted by FN-GM
So it should only accept those who aren't true or false, aka "3rd option"
28th May 2012, 03:58 PM #8
invalid filter error
Originally Posted by Steve21
28th May 2012, 04:00 PM #9
Apologies, with my edit it's probably been over looked: <Not set> is a Null value - use * instead.
28th May 2012, 04:02 PM #10
That gives the same results asif true was being used.
Originally Posted by DT2
28th May 2012, 04:04 PM #11
hmm.... what version of exchange are you running?
28th May 2012, 04:05 PM #12
2010, isnt a * a wild card?
28th May 2012, 04:50 PM #13
it's used to search for null values, <not set> being that.
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
28th May 2012, 04:54 PM #14
It errors out. Please see the attached.
28th May 2012, 04:55 PM #15
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.
By deano in forum Enterprise Software
Last Post: 18th May 2012, 05:24 PM
By Stuart_C in forum Scripts
Last Post: 14th May 2010, 07:04 PM
By randle in forum Office Software
Last Post: 9th November 2009, 02:17 PM
By penfold_99 in forum Coding
Last Post: 15th May 2009, 02:30 PM
By tarquel in forum Windows
Last Post: 21st June 2005, 03:00 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)