Re: Easy inventory of server



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 regular
domain user or a domain administrator
In a similar vein, it might be the security settings. Try:

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.

.



Relevant Pages

  • Re: Easy inventory of server
    ... 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. ... The Win32_Product class that the script uses is not available by default on Server 2003. ... domain user or a domain administrator ...
    (microsoft.public.windows.server.general)
  • Re: Vista Logon Script
    ... I cannot possibly deploy Vista until this is fixed either. ... are some scripts like 'Map network drives' that would need to be run in UAP ... In order to launch such scripts in a UAP context from an elevated ... Here is a sample script: ...
    (microsoft.public.scripting.wsh)
  • Re: Writing my 1st VBS "Script Component"
    ... source object is vacated; I always vacate the drived object first. ... In script, though, MS has tried to make it very ... And it's 3.3 product cycles for their Software Assurance racket. ... but it's supported in Vista. ...
    (microsoft.public.scripting.vbscript)
  • FW: regex needed
    ... Still cant get to you chris ... you must refer to the latest post to see the working script. ... |> |I have now looped the route list, and it is saved in the hash. ...
    (perl.beginners)
  • Re: Nav Bars
    ... I found that script handy when I was doing a shopping cart with very long ... > Thanks very much Chris. ... >> you can use either a frame or a static layer. ...
    (microsoft.public.frontpage.client)