Re: Easy inventory of server
- From: hanspjacobsen <hanspjacobsen@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 1 Nov 2007 04:56:02 -0700
Hi Chris it worked doing as you suggested but the result of the dump was quit
different from xp and vista. It only retturend around half of the software
the is listed in add remove program list. mostly it's spesialized software
that isn't returned although they are listed under add remove programs..
"Chris M" wrote:
hanspjacobsen wrote:.
Chris you where correct this didn't work.
Why dosen't it work with windows 2003 when it works fine with xp and vista.
I ran the script on one of our 2003 machines here and it didn't work
either. It took a bit of digging, but I have found the reason (I think!).
The Win32_Product class that the script uses is not available by default
on Server 2003.
You can install it by following the steps towards the bottom of this page:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul05/hey0712.mspx
Please note that I haven't tested this. I'm pretty sure that this will
resolve the problem though.
--
Chris.
"Chris M" wrote:
hanspjacobsen wrote:
No it didn't help. I receive the same result when logged on as a regularIn a similar vein, it might be the security settings. Try:
domain user or a domain administrator
Set objWMIService =
GetObject("winmgmts:{impersonationLevel=impersonate,SystemProfile}!\\" &
strComputer & "\root\cimv2")
That might not work though... it could be any of the security settings
on this page that is required (I just guessed at the SystemProfile one):
http://www.microsoft.com/technet/scriptcenter/guide/sas_wmi_arib.mspx?mfr=true
--
Chris.
"Richard Mueller [MVP]" wrote:
Does it help to change this line:
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
To this:
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,authenticationLevel=Pkt}!\\" _
& strComputer & "\root\cimv2")
I've heard that authenticationLevel can be required on W2k3.
- Follow-Ups:
- Re: Easy inventory of server
- From: Chris M
- Re: Easy inventory of server
- References:
- Re: Easy inventory of server
- From: Chris M
- Re: Easy inventory of server
- Prev by Date: Re: Windows Installer (MSI) Error 2203 An internal error has occurred.
- Next by Date: Moving a PDC to new hardware
- Previous by thread: Re: Easy inventory of server
- Next by thread: Re: Easy inventory of server
- Index(es):
Relevant Pages
|