Hi
I am trying to run a script to report the installed software on remote machines. The script runs fine when I run it from my workstation against a remote machine on the same domain

The network consists of several small windows 2000 single domain forests with a single windows 2000 server in each forest, and there are no trust relationships between forests. In order to run the script on the other domains, I have been connecting through Terminal services to the domain controller and running the script from there ( I am logging on with Domain Admin rights)

As soon as I try to run it against a remote machine from the DC I get an error: 0x80041010 Source: (null) in the following lin

Set colSoftware = objWMIService.ExecQuery("Select * from Win32Reg_AddRemovePrograms",,48
For Each objItem in colSoftware >error on this line

Anyone know where I am going wrong

Thanks

Re: Problems with script by Brendon

Brendon
Tue Feb 03 06:52:16 CST 2004

You need to post more of your script. Also, you might have more luck posting
in

microsoft.public.windows.server.scripting


"John E" <anonymous@discussions.microsoft.com> wrote in message
news:2542BFB5-4C50-4F54-A184-ED5566A56358@microsoft.com...
> Hi,
> I am trying to run a script to report the installed software on remote
machines. The script runs fine when I run it from my workstation against a
remote machine on the same domain.
>
> The network consists of several small windows 2000 single domain forests
with a single windows 2000 server in each forest, and there are no trust
relationships between forests. In order to run the script on the other
domains, I have been connecting through Terminal services to the domain
controller and running the script from there ( I am logging on with Domain
Admin rights).
>
> As soon as I try to run it against a remote machine from the DC I get an
error: 0x80041010 Source: (null) in the following line
>
> Set colSoftware = objWMIService.ExecQuery("Select * from
Win32Reg_AddRemovePrograms",,48)
> For Each objItem in colSoftware >error on this line<
>
> Anyone know where I am going wrong?
>
> Thanks



Re: Problems with script by Politician

Politician
Tue Feb 03 08:20:18 CST 2004

Null means your variable points to nothing which means the object you
intended to create didn't because the WMI function returned nothing. Why it
returned nothing could be one of many reasons: What you requested may not
exist on that server's registry. You may have insufficient rights to that
part of the registry. Or something else.

--
Politician Spock
Thug #24601


"John E" <anonymous@discussions.microsoft.com> wrote in message
news:2542BFB5-4C50-4F54-A184-ED5566A56358@microsoft.com...
> Hi,
> I am trying to run a script to report the installed software on remote
machines. The script runs fine when I run it from my workstation against a
remote machine on the same domain.
>
> The network consists of several small windows 2000 single domain forests
with a single windows 2000 server in each forest, and there are no trust
relationships between forests. In order to run the script on the other
domains, I have been connecting through Terminal services to the domain
controller and running the script from there ( I am logging on with Domain
Admin rights).
>
> As soon as I try to run it against a remote machine from the DC I get an
error: 0x80041010 Source: (null) in the following line
>
> Set colSoftware = objWMIService.ExecQuery("Select * from
Win32Reg_AddRemovePrograms",,48)
> For Each objItem in colSoftware >error on this line<
>
> Anyone know where I am going wrong?
>
> Thanks