WMI Scripting: GetObject Permission denied

M

Martin

Hi,

I have written a vb script to read in a list of machines
from a file, then connect to each machine and kill a
specific process using WMI.

The script worked fine on test machines, however when I
run on the network, I receive the error: "Permission
Denied: GetObject 800A0046" on each machine.

This does not appear to be OS specific. My test machines
were 2000 Pro, SP4. Live machines included both 2000
Pro SP4 and XP SP1.

Presumbly WMI is somehow locked down by one of the more
recent critical updates, versions of ie or something..?

The line I am using to connect to the remote machines is:

Set objWMIService = GetObject("winmgmts:" & "\\" &
objDictionary.Item(objItem) & "\root\cimv2")

I am running the script interactively, with domain admin
rights.

Any ideas on what may be stopping this running on mylive
systems?

Regards,

Martin
 
M

Mark Alexander Bertenshaw

Martin said:
Hi,

I have written a vb script to read in a list of machines
from a file, then connect to each machine and kill a
specific process using WMI.

The script worked fine on test machines, however when I
run on the network, I receive the error: "Permission
Denied: GetObject 800A0046" on each machine.

This does not appear to be OS specific. My test machines
were 2000 Pro, SP4. Live machines included both 2000
Pro SP4 and XP SP1.

Presumbly WMI is somehow locked down by one of the more
recent critical updates, versions of ie or something..?

The line I am using to connect to the remote machines is:

Set objWMIService = GetObject("winmgmts:" & "\\" &
objDictionary.Item(objItem) & "\root\cimv2")

I am running the script interactively, with domain admin
rights.

Any ideas on what may be stopping this running on mylive
systems?

Martin -

Perhaps you have to run these scripts under Domain Administrator
permissions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top