Re: WMI Script, access denied?
- From: "Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Feb 2009 08:08:54 -0600
"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:%23xYPXrafJHA.1168@xxxxxxxxxxxxxxxxxxxxxxx
Yeah, seems like number 1 is what's getting me here. I'm working on running
"Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx> wrote in
message news:eTl29mafJHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
"Linn Kubler" <lkubler@xxxxxxxxxxxxxxxxxx> wrote in message
news:%23P94DDafJHA.3716@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I've got a little script here that I can use to get some information out
of a computer. This works fine with computers that are attached to my
domain but I can't get it to work with a computer that is not in my
domain but rather a workgroup. I get an Access Denied message. What is
different about accessing a workgroup computer and a domain computer?
Here's my code:
Const WbemAuthenticationLevelPktPrivacy = 6
strComputer = "chart553"
strUser = "workgroup\Julie"
strPassword = ""
Set objWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = objwbemLocator.ConnectServer _
(strComputer, strNamespace, strUser, strPassword)
objWMIService.Security_.authenticationLevel =
WbemAuthenticationLevelPktPrivacy
I've also tried strUser = "chart553\Julie"
Julie is the Administrator account name of this laptop and the account
does not have a password, the laptop boots straight to the desktop. It
is Windows XP Home, whereas the domain computers are XP Pro, could that
be the difference?
Thanks in advance,
Linn
I believe XP home does not have DCOM enabled, which is required for WMI
to connect remotely.
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
Some time ago I did research and found the following rules:
1. You cannot connect to computer running XP Home.
2. An NT computer cannot connect to OS later than W2k.
3. A W2k3 computer cannot connect to Win9x.
4. To connect to W2k Server SP4 you must set impersonation level to
Impersonate.
5. W2k computers must have SP2 to connect to XP or above.
6. W2k3 can only connect to Win9x and NT if credentials supplied.
7. To connect to XP or W2k3 you must set authentication level to Pkt.
Number 7 may not be required, but it can't hurt either.
--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
scripts from the XP Home systems and pushing the collected data to my
system. I think this will have limited use for me but necessary, XP home is
definately the exception in my network.
Thanks,
Linn
.
- Prev by Date: Re: WMI Script, access denied?
- Next by Date: File copy and paste script
- Previous by thread: Re: WMI Script, access denied?
- Next by thread: File copy and paste script
- Index(es):
Relevant Pages
|