Re: Security woes
From: [MS] Scott McNairy (scotmc_at_online.microsoft.com)
Date: 04/21/04
- Next message: Hugo M. Ranea: "Re: Security woes"
- Previous message: Hugo M. Ranea: "Security woes"
- In reply to: Hugo M. Ranea: "Security woes"
- Next in thread: Hugo M. Ranea: "Re: Security woes"
- Reply: Hugo M. Ranea: "Re: Security woes"
- Reply: Hugo M. Ranea: "Re: Security woes"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 11:40:57 -0700
>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.
-- [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:e%23Hcx38JEHA.428@TK2MSFTNGP11.phx.gbl... > Hello, > > > I wrote lots of WMI scripts for testing/learning purposes, now that I > created a real program, it works fine with me (I have admin rights on > all computers in the network) but if anyone else tries to run the > program, it will work fine if it is info on the local computer, but it > fails for remote ones, for example > > if lcComputer is "." or "localhost" then > > loWMIService = GetObject("winmgmts:\\" + lcComputer + "\root\cimv2") > > works no problem, but if lcComputer is any remote computer, the user > gets the "Moniker can not open file" message. For example, lets say > that user 'USER1' is trying to create loWMIService on my machine, I > added him as an user with administrator rights to my machine, as well as > editing the "WMI Control Properties" Under Computer Managemente -> > Services and Applications -> WMI Control, in the "Security" tab, > "Security" for root I added USER1 with full access for root and all > "This namespace and subnamespaces", but still no luck, he gets the same > message > > I know very little about WMI and ZIP about Windows security, can somene > please help me? What did I miss? >
- Next message: Hugo M. Ranea: "Re: Security woes"
- Previous message: Hugo M. Ranea: "Security woes"
- In reply to: Hugo M. Ranea: "Security woes"
- Next in thread: Hugo M. Ranea: "Re: Security woes"
- Reply: Hugo M. Ranea: "Re: Security woes"
- Reply: Hugo M. Ranea: "Re: Security woes"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading