Re: permissions to create process via WMI
From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 09/14/04
- Next message: Ivan Brugiolo [MSFT]: "Re: MSAcpi_ThermalZoneTemperature"
- Previous message: Mike Brierley: "collecting smtp addresses from AD"
- In reply to: Joeri KUMBRUCK: "permissions to create process via WMI"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 14 Sep 2004 19:10:06 +0100
Hi,
This doesn't make much sense on it's own. You appear to have 3 PCs; the
PC upon which the script is running, the server it connects to and a 3rd
PC that receives a network message?
What is it trying to achieve?
Why is the username and password in plain text?
Joeri KUMBRUCK wrote:
> Hello all,
>
> I've written the following code to execute a commandline on a remote
> computer via WMI. Problem is: I need to be a user of the
> administrator group of the remote machine to get this commandline
> executed. I don't want to make all endusers member of the local
> administrators group so they can execute this script perfectly. Maybe
> I can change permissions in the registry or file system to get this
> to work??
> Or are there other ways to let this work?
> Any help is welcome,
>
> Joeri.
>
> Set oLocator = CreateObject("WbemScripting.SWbemLocator")
> Set oService = oLocator.ConnectServer("bruaviw2svtestb",
> "root\cimv2", username, "password)
> oService.Security.impersonationlevel = 3
> Set oProcess = oService.Get("Win32_Process")
> cFlag = oProcess.Create("net send BRUAVIW2PCTESTF test")
>
>
-- Gerry Hickman (London UK)
- Next message: Ivan Brugiolo [MSFT]: "Re: MSAcpi_ThermalZoneTemperature"
- Previous message: Mike Brierley: "collecting smtp addresses from AD"
- In reply to: Joeri KUMBRUCK: "permissions to create process via WMI"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|