Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Error using Active Directory Searcher

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-01-2008   #1 (permalink)
Jobbsy
Guest


 

Error using Active Directory Searcher

I was looking at the following piece of code:

http://blogs.technet.com/bahramr/arc...directory.aspx

but when stepping through it errors at $users = $searcher.FindAll()

with following error:
Exception calling "Findall" with "0" arguments(s): "Unknown error
(0x80005000)"

Can anyone help?





--
jobbsy@xxxxxx

My System SpecsSystem Spec
Old 03-01-2008   #2 (permalink)
Marco Shaw [MVP]
Guest


 

Re: Error using Active Directory Searcher

Jobbsy wrote:
Quote:

> I was looking at the following piece of code:
>
> http://blogs.technet.com/bahramr/arc...directory.aspx
>
> but when stepping through it errors at $users = $searcher.FindAll()
>
> with following error:
> Exception calling "Findall" with "0" arguments(s): "Unknown error
> (0x80005000)"
>
> Can anyone help?
>
My guess is that your $searcher object is empty, so you may need to
reverify your LDAP query.

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 03-02-2008   #3 (permalink)
RichS
Guest


 

RE: Error using Active Directory Searcher

have a look at this
http://www.fastchicken.co.nz/blog/20...x80005000.aspx

Check the ldap string you are putting in is correct. I would expect an
empty result set to actually work but just not give you any data back

--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Jobbsy" wrote:
Quote:

> I was looking at the following piece of code:
>
> http://blogs.technet.com/bahramr/arc...directory.aspx
>
> but when stepping through it errors at $users = $searcher.FindAll()
>
> with following error:
> Exception calling "Findall" with "0" arguments(s): "Unknown error
> (0x80005000)"
>
> Can anyone help?
>
>
>
>
>
> --
> jobbsy@xxxxxx
My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
active directory Walser Mark PowerShell 4 04-22-2008 08:55 AM
Active Directory Mark D. Hall Vista mail 1 09-14-2007 06:49 PM
Active Directory Dyawlak Vista security 3 05-24-2007 05:15 AM
Active Directory Vista networking & sharing 4 12-19-2006 09:27 AM
active directory Cameron Murray PowerShell 4 11-16-2006 11:01 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51