Re: Security woes

From: Kirk (Kirk.Mccann_at_NAV-INTERNATIONAL.com)
Date: 04/29/04


Date: 29 Apr 2004 14:18:21 -0700

What was the final resolution for this issue?
I'm an attempting to do the same thing
Thanks,
Kirk
"[MS] Scott McNairy" <scotmc@online.microsoft.com> wrote in message news:<40871db9$1@news.microsoft.com>...
> Yes, a Moniker like you were using prior will execute as the user account
> who is executing the script. Or the WMI client.
>
> Ok, what you are hitting is most likely expected. The reason is that WMI
> enables all sorts of usages of the computer including rebooting, Logging
> off, creating file shares etc... this is why the Users group is not enabled
> remotely by default.
>
> However, you can enable a user on each computer that you want to if they are
> a member of the Users group on that computer. All you have to do is the
> following.
> right click "My Computer" on the target machine
> select "Manage"
> expand "Services and Applications"
> right click "WMI Control"
> select "properties"
> select "Security" tab
> Expand the "Root" node to the node that you want to apply security too and
> add that local user account to that machine. To access wmi from a remote
> location, you will need "remote enable" and "enable account" permissions to
> that namespace.
>
> An administrator should be able to connect to the box no matter what.
>
> --
> [MS] Scott McNairy
> WMI Test Engineer
> This posting is provided "As Is" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
>
> "Hugo M. Ranea" <hmranea@shaw.ca> wrote in message
> news:uKtd%23B$JEHA.556@tk2msftngp13.phx.gbl...
> > [MS] Scott McNairy wrote:
> >
> > >From what I see, you are trying to use a moniker for remote access using
> a
> > >local user account correct?
> > >
> > >If that is the case, you will want to use the SWbemServices.ConnectServer
> > >call instead.
> > >
> > >set lctr = createObject("wbemScripting.SwbemLocator")
> > >set svc = lctr.ConnectServer("remotemachine", "remotemachine\user",
> > >"password")
> > >
> > >The security settings for domain users will need to be applied to each
> > >computer that you want to grant them access too.
> > >
> > >
> > >
> > Well, so far no luck, using ConnectServer I got the same problem in
> > different line:
> >
> > loService = loLocator.ConnectServer(lcComputer,
> > '\root\cimv2', lcDomain + "\" + lcUser, lcPassword)
> >
> > If I run the program everything goes fine, I can query my computer or
> > any other computer in the network without a problem, but, as soon as we
> > run the program in my co-worker's computer the loService line posted
> > fails misserably, although the User, Domain and Password are all right
> > (He can not even get it to work in his local computer this way,
> > something that worked with the other way)
> >
> > I am completely lost :(
> >



Relevant Pages

  • Re: Getting logged in user from a service?
    ... the service executes the service call, when WMI needs to "enable" a privilege, it' s up to the caller to ask the service to enable the required privilege, the user doesn't need to know the "privilege" required, WMI know which one as it's stored in it's metabase. ... All WMI's security levels are highly customizable, the namespaces are all protected by DACL's you can adjust, you can prevent certain user to access, read, write, execute etc...it's namespaces, if a user is allowed to execute a method, WMI will simply enable or add the privilege when needed on a per call basis. ... Some classes and methods need an impersonation token from the base client, if the token holds a needed privilege to execute or access a namespace class, WMI enables this privilege, when the token misses the privilege, the call fails. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Security woes
    ... a Moniker like you were using prior will execute as the user account ... The reason is that WMI ... enables all sorts of usages of the computer including rebooting, ... To access wmi from a remote ...
    (microsoft.public.win32.programmer.wmi)
  • Re: execute program on remote PC
    ... anybody has the code to execute a program such as notepad.exe on a remote ... windows 2000/XP computer? ... Processes you run remotely via WMI won't be able to interact with the desktop. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Remote GPUpdate /force
    ... HTH ... >I am looking for a way to execute a command remotely using WMI. ... > without a reboot on a remote XP machine. ...
    (microsoft.public.scripting.vbscript)
  • Remote GPUpdate /force
    ... I am looking for a way to execute a command remotely using WMI. ... I am wanting to run gpupdate /force ... without a reboot on a remote XP machine. ...
    (microsoft.public.scripting.vbscript)