A little PowerShell help please

C

Clayton Sutton

Hey all,

I have been trying to get this powershell script to run but I have been
having problems.

Get-QADUser -sizelimit 0 -LdapFilter '(extensionAttribute2=$null)'

Trying to get all AD Exchange acct(s). that don't have the following
attribute set (extensionAttribute2).

If I run

Get-QADUser -sizelimit 0 -LdapFilter '(extensionAttribute2=*)' it returns
everyone.

What am I missing?

TIA,

Clayton
 

My Computer

L

Larry__Weiss

If I read it right
http://www.selfadsi.org/ldap-filter.htm
says to code it

Get-QADUser -sizelimit 0 -LdapFilter '(!(extensionAttribute2=*))'

- Larry


On 5/18/2010 1:08 PM, Clayton Sutton wrote:

> Hey all,
> I have been trying to get this powershell script to run but I have been
> having problems.
>
> Get-QADUser -sizelimit 0 -LdapFilter '(extensionAttribute2=$null)'
>
> Trying to get all AD Exchange acct(s). that don't have the following
> attribute set (extensionAttribute2).
>
> If I run
>
> Get-QADUser -sizelimit 0 -LdapFilter '(extensionAttribute2=*)' it returns
> everyone.
>
> What am I missing?
>
> TIA,
>
> Clayton
>
>
 

My Computer

C

Clayton Sutton

Thanks Larry,

That worked! And thanis for the cool website too!


Clayton




"Larry__Weiss" <[email protected]> wrote in message
news:[email protected]

> If I read it right
> http://www.selfadsi.org/ldap-filter.htm
> says to code it
>
> Get-QADUser -sizelimit 0 -LdapFilter '(!(extensionAttribute2=*))'
>
> - Larry
>
>
> On 5/18/2010 1:08 PM, Clayton Sutton wrote:

>> Hey all,
>> I have been trying to get this powershell script to run but I have been
>> having problems.
>>
>> Get-QADUser -sizelimit 0 -LdapFilter '(extensionAttribute2=$null)'
>>
>> Trying to get all AD Exchange acct(s). that don't have the following
>> attribute set (extensionAttribute2).
>>
>> If I run
>>
>> Get-QADUser -sizelimit 0 -LdapFilter '(extensionAttribute2=*)' it returns
>> everyone.
>>
>> What am I missing?
>>
>> TIA,
>>
>> Clayton
>>
>>
 

My Computer

Top