Re: permissions to create process via WMI

From: Gerry Hickman (gerry666uk_at_yahoo.co.uk)
Date: 09/14/04


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)


Relevant Pages

  • Re: Remove programs with a script?
    ... While I execute this I get error: ... The script passed to CreateScript must be a WSH hosted script ... The remote machine needs to have WshRemote enabled: ... WshRemote instances do not run in the context of the visible, ...
    (microsoft.public.scripting.wsh)
  • Re: Remove programs with a script?
    ... While I execute this I get error: ... The script passed to CreateScript must be a WSH hosted script ... The remote machine needs to have WshRemote enabled: ... WshRemote instances should never attempt to produce any visible ...
    (microsoft.public.scripting.wsh)
  • Re: expect + last few arguments as one
    ... I'm trying to execute some commands on remote machines using expect ... ... I execute this script like: ... ./ssh_login.sh PASSWD IP COMMAND ... to different text file (on remote machine as well) AND here i have problem ...
    (comp.os.linux.misc)
  • expect + last few arguments as one
    ... I'm trying to execute some commands on remote machines using expect ... ... I execute this script like: ... ../ssh_login.sh PASSWD IP COMMAND ... i would like to execute script on remote machine and result of it direct to different text file AND here i have problem ...
    (comp.os.linux.misc)
  • Re: Will Linux become as vulnerable as MS ??
    ... > beeing vulnerable to viruses. ... > that they know are executable, and execute intentionally. ... >> Linux, each distro is a little different, and even within the distro, ... > Since clicking on a script is easier than typing it's name, ...
    (comp.os.linux.security)