Re: Remote run Script issue
- From: Chris M <Nobody@xxxxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2007 10:13:23 +0100
bobgfish wrote:
Trying to run a simple utility to change the drive letter of the CD ROM. The script runs fine when running locallly. However if I try and run it remotely by changing the strComputer name I get an Access Denied message. This happens on the .Put_ line. Ideas? I think it is something in Group Policy as I've removed the machine from the domain and it then works.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Probably your impersonation string. Try this:
impersonationLevel=impersonate,(Security)}!
or perhaps:
impersonationLevel=impersonate,(MachineAccount)}!
or maybe even both:
impersonationLevel=impersonate,(Security,MachineAccount)}!
There are other privileges that you might need too. Take a look here:
http://www.microsoft.com/technet/scriptcenter/guide/sas_wmi_vzbp.mspx?mfr=true
--
Cheers,
Chris.
.
- References:
- Remote run Script issue
- From: bobgfish
- Remote run Script issue
- Prev by Date: Remote run Script issue
- Next by Date: Re: Recording AD Logons to SQL Database
- Previous by thread: Remote run Script issue
- Index(es):
Relevant Pages
|