Re: Win32Reg_AddRemovePrograms
- From: "Scott McNairy \(MVP\)" <v-scomcn@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Apr 2005 15:52:25 -0700
The win32Reg_AddRemovePrograms class comes from installing SMS Server 2003
onto that computer. You can get very similar information from the following
class definition note the name is "Products" in this definition and since
the namespace is not specified it will go to root\default, unfortunately you
have to compile the mof file below. As you can see both classes are looking
to the same registry key to retrieve their data. The command line to
compile this mof is "mofcomp thisFile.mof" save the file as a unicode file
with notepad.
qualifier dynamic:ToInstance;
qualifier ProviderClsid:ToInstance;
qualifier ClassContext:ToInstance;
qualifier propertycontext:ToInstance;
[dynamic, provider("RegProv"),
ProviderClsid("{fe9af5c0-d3b6-11ce-a5b6-00aa00680c3f}"),ClassContext("local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall")]
class Products {
[key] string KeyName;
[read, propertycontext("DisplayName")] string DisplayName;
[read, propertycontext("DisplayVersion")] string DisplayVersion;
[read, propertycontext("InstallLocation")] string InstallLocation;
};
--
Scott McNairy
Microsoft MVP - Windows Server Management Infrastructure
"msnews.microsoft.com" <yanive@xxxxxxxx> wrote in message
news:%23wHGiACPFHA.1096@xxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> Anyone may know why this class exists on some 2003 servers and does not
> exist on others.
> I have also tried on a machine installed with 2003 sp1 but the class does
> not exist.
>
>
>
> Thanks,
> Yaniv
>
>
.
- Follow-Ups:
- Re: Win32Reg_AddRemovePrograms
- From: msnews.microsoft.com
- Re: Win32Reg_AddRemovePrograms
- Prev by Date: Re: User rigths for WMI access
- Next by Date: Re: How can I kill a stuck cmd.exe remotely?
- Previous by thread: Re: WMI RPC Server not available
- Next by thread: Re: Win32Reg_AddRemovePrograms
- Index(es):
Relevant Pages
|