Re: Security woes

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Hugo M. Ranea (hmranea_at_shaw.ca)
Date: 04/21/04

  • Next message: Hugo M. Ranea: "Re: Security woes"
    Date: Wed, 21 Apr 2004 12:00:31 -0700
    
    

    [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.
    >
    >
    >
    So this means that :

    GetObject("winmgmts:\\" + lcComputer + "\root\cimv2")

    Should be avoided if the intended user base target are not admins? It worked for me so nice that hurts a little not to use it :)

    I am changing my code to follow your advice, I know it works for I used before, but I wanted to avoid the password thing, for, if for example, I want to query a remote time every now and then, prompting the user to put the password each time is annoying, and hardcoding it is dangerous... I guess I will ask the password once the first time needed and then store it in a globally accessible variable for the duration of the session. Thanks for your help


  • Next message: Hugo M. Ranea: "Re: Security woes"

    Relevant Pages

    • Re: Security woes
      ... Scott McNairy wrote: ... >local user account correct? ... >The security settings for domain users will need to be applied to each ...
      (microsoft.public.win32.programmer.wmi)
    • Re: Failed to open group policy
      ... You go into domain users and computers and select advanced view which will ... "Default Domain Security Settings" on my Domain Controller I get the ... I am logging in as a user with Domain Admin Rights. ...
      (microsoft.public.windows.group_policy)
    • Re: GPO security settings not applied
      ... So, what can I do to stop certain users (for example: IT, Directors) from ... having the more restrictive security settings that the general domain users ... > The Password Policy is indeed set at the Domain - level. ...
      (microsoft.public.win2000.group_policy)
    • Allow domain users from anywhere ...
      ... What security settings should I set to achieve the ... Web site can be accesed by all domain users from any ... computer over internet (i.e. not only from machines ...
      (microsoft.public.dotnet.framework.aspnet.security)