Re: Security woes
From: Hugo M. Ranea (hmranea_at_shaw.ca)
Date: 04/21/04
- Previous message: [MS] Scott McNairy: "Re: Security woes"
- In reply to: [MS] Scott McNairy: "Re: Security woes"
- Next in thread: Hugo M. Ranea: "Re: Security woes"
- Messages sorted by: [ date ] [ thread ]
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
- Previous message: [MS] Scott McNairy: "Re: Security woes"
- In reply to: [MS] Scott McNairy: "Re: Security woes"
- Next in thread: Hugo M. Ranea: "Re: Security woes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|