Re: active directory search
- From: "James Whitlow" <jwhitlow@xxxxxxxxxx>
- Date: Thu, 25 Aug 2005 13:55:07 -0500
"Gary" <Gary@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1D645DD7-2A22-4C1F-ABF6-3356C7650F0E@xxxxxxxxxxxxxxxx
> Error:
> An exception of type 'Microsoft VBScript runtime error: Permission denied:
> 'GetObject" was not handled.
I could be wrong, but it look like the account you are running the script
under does not have permissions to connect to WMI on this server. Put a
'WScript.Echo strComputer' like just before the 'GetObject' line. This way
we will know exactly which server it is failing on and you can check the
permissions. Just for testing purposes, once you know the server, just
create a small script that contains nothing more that something like this:
strComputer = [the name of the last computer echoed in the script]
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationlevel=impersonate}!\\" & strComputer & "\root\cimv2")
Run this script and see if you get a permissions denied error.
.
- References:
- active directory search
- From: Gary
- Re: active directory search
- From: James Whitlow
- Re: active directory search
- From: Gary
- Re: active directory search
- From: James Whitlow
- Re: active directory search
- From: Gary
- Re: active directory search
- From: James Whitlow
- Re: active directory search
- From: Gary
- Re: active directory search
- From: James Whitlow
- Re: active directory search
- From: Gary
- active directory search
- Prev by Date: Re: Chart Type Info
- Next by Date: Re: How to obtain file Size in current directory?
- Previous by thread: Re: active directory search
- Next by thread: End of String Character?
- Index(es):
Relevant Pages
|