Real Geek Forums  

Go Back   Real Geek Forums > Archives > Operating Systems > Windows XP > Windows XP WMI

Notices

Reply

WMI Permission denied

 

LinkBack Thread Tools Display Modes
Old 10-21-2004, 09:15 PM   #1 (permalink)
Default WMI Permission denied

I have been searching high-and-low on the Microsoft site for a solution to
why I can't remotely run WMI code for 2 of our computers in our domain. All
other computers respond appropriately and are all built the same.

I run the following script via an Access database in code and for all but 2
PC's I get the correct response. For 2 of the PC's I get the response back
of "PERMISSON DENIED". I am the domain admin and logged in as such, so I
think that can rule out authentication problems. We're not using any GPO's
either.

Both PC's are WinXP Pro, one has SP2 the other has SP1a. The one with SP2
never correctly repsonded before updating to SP2 so have been able to rule
that possibility out.

'=========CODE SNIPPET==================
strComputer="JoeSmith"
Set objWMIService = GetObject("winmgmts:" &
"{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colComputer = objWMIService.ExecQuery("Select * from
Win32_ComputerSystem")

For Each objComputer In colComputer
Debug.Print "Logged-on user: " & objComputer.UserName
Next

Regards,

Robert C


dwos
Guest
 
Posts: n/a
Reply With Quote  
Old 10-21-2004, 11:41 PM   #2 (permalink)
Default Re: WMI Permission denied

Hi dwos,

"dwos" <deep_h2o@yahoo.com> schrieb im Newsbeitrag news:OrejOM7tEHA.2956@TK2MSFTNGP12.phx.gbl...
Quote:
> I run the following script via an Access database in code and for all but 2
> PC's I get the correct response. For 2 of the PC's I get the response back
> of "PERMISSON DENIED". I am the domain admin and logged in as such, so I
> think that can rule out authentication problems. We're not using any GPO's
> either.
is it possible, that these both PCs are not assigned to your domain?
is it possible, that the rights for the domainadmin, are not the same
as at the other PC's?

I think, it is possible, you've a problem with the adminrights.

Cioa
Peter


Peter Falz
Guest
 
Posts: n/a
Reply With Quote  
Old 10-22-2004, 12:17 AM   #3 (permalink)
Default Re: WMI Permission denied

Just checked the permissions on both PC's and they appear to have the same
permissions as all the other PC's. Even checked the permissions in the WMI
snap-in.

Heck, I can do just about everything remotely to them except WMI. I can
open just about any MMC snap-in on either PC. Can't run RSOP snap-in or make
the WMI snap-in work remotely. Just about ready to just rebuild them and
see what happens. Heck I've probably spent more time trying to get it to
work that it would have take to rebuild it.

Cheers,

Robert C


"Peter Falz" <pf.ms.news@asp-solutions.de> wrote in message
news:ulYasd8tEHA.272@TK2MSFTNGP12.phx.gbl...
Quote:
> Hi dwos,
>
> "dwos" <deep_h2o@yahoo.com> schrieb im Newsbeitrag
> news:OrejOM7tEHA.2956@TK2MSFTNGP12.phx.gbl...
Quote:
>> I run the following script via an Access database in code and for all but
>> 2
>> PC's I get the correct response. For 2 of the PC's I get the response
>> back
>> of "PERMISSON DENIED". I am the domain admin and logged in as such, so I
>> think that can rule out authentication problems. We're not using any
>> GPO's
>> either.
>
> is it possible, that these both PCs are not assigned to your domain?
> is it possible, that the rights for the domainadmin, are not the same
> as at the other PC's?
>
> I think, it is possible, you've a problem with the adminrights.
>
> Cioa
> Peter
>
>

dwos
Guest
 
Posts: n/a
Reply With Quote  
Old 10-22-2004, 06:38 PM   #4 (permalink)
Default Re: WMI Permission denied

Try to logon locally on those machines and use wbemtest.exe/your script to
connect locally. If it doesn't work, try to bring up the WMI mmc snapin and
see the security settings. It's hard to analyze what's happening with those
computers without having any info about them (wrong security settings on
those namespaces, corrupted repository, etc.)

--
This posting is provided "AS IS" with no warranties, and confers no rights
Thx_Bogdan


"dwos" <deep_h2o@yahoo.com> wrote in message
news:#nOoAy8tEHA.1276@TK2MSFTNGP12.phx.gbl...
Quote:
> Just checked the permissions on both PC's and they appear to have the same
> permissions as all the other PC's. Even checked the permissions in the
WMI
Quote:
> snap-in.
>
> Heck, I can do just about everything remotely to them except WMI. I can
> open just about any MMC snap-in on either PC. Can't run RSOP snap-in or
make
Quote:
> the WMI snap-in work remotely. Just about ready to just rebuild them and
> see what happens. Heck I've probably spent more time trying to get it to
> work that it would have take to rebuild it.
>
> Cheers,
>
> Robert C
>
>
> "Peter Falz" <pf.ms.news@asp-solutions.de> wrote in message
> news:ulYasd8tEHA.272@TK2MSFTNGP12.phx.gbl...
Quote:
> > Hi dwos,
> >
> > "dwos" <deep_h2o@yahoo.com> schrieb im Newsbeitrag
> > news:OrejOM7tEHA.2956@TK2MSFTNGP12.phx.gbl...
Quote:
> >> I run the following script via an Access database in code and for all
but
Quote:
Quote:
Quote:
> >> 2
> >> PC's I get the correct response. For 2 of the PC's I get the response
> >> back
> >> of "PERMISSON DENIED". I am the domain admin and logged in as such, so
I
Quote:
Quote:
Quote:
> >> think that can rule out authentication problems. We're not using any
> >> GPO's
> >> either.
> >
> > is it possible, that these both PCs are not assigned to your domain?
> > is it possible, that the rights for the domainadmin, are not the same
> > as at the other PC's?
> >
> > I think, it is possible, you've a problem with the adminrights.
> >
> > Cioa
> > Peter
> >
> >
>
>

bogdanMo [MSFT]
Guest
 
Posts: n/a
Reply With Quote  
Reply

Tags
None

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Denied Permission to windows.old files! PLEASE HELP! lionel Windows Vista File Management 6 11-16-2006 09:54 AM
C:\Users\All Users permission denied Len Norton Windows Vista File Management 8 10-04-2006 12:27 PM
No permission to run IE 7+ Gene Girard Windows Vista Administration 2 06-15-2006 04:48 PM
Access denied no permission Don Starr Windows XP Accessibility 1 07-30-2003 09:58 PM
Remote Assistance - Permission Denied Mahadev Alladi[MS] Windows XP Work Remotely 1 07-11-2003 10:25 AM


All times are GMT. The time now is 09:44 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90