Hello Eswar,

Thank you for help, I tried your batch file on 13 different stations ( Windows 
Vista x86 ) using pstools:

PsExec.exe @comps.txt -c script.bat

comps.txt = contains the list of the workstations

and this is what I get:


Invalid parameter

Windows Management Instrumentation

Usage:  winmgmt [/backup <filename>] [/restore <filename> <flag>]
                [/resyncperf] [/standalonehost [<level>]] [/sharedhost]
                [/verifyrepository [<path>]] [/salvagerepository]
                [/resetrepository]

The Windows Management Instrumentation service is stopping.
The Windows Management Instrumentation service was stopped successfully.

The system cannot find the file ædir.
The system cannot find the file ædir.
The system cannot find the file ædir.
The requested service has already been started.
script.bat exited on CLIENTXX with error code 0.

Maybe it is better to use winmgmt  /salvagerepository instead of 
%windir%\system32\wbem\winmgmt /clearadap
%windir%\system32\wbem\winmgmt /kill
%windir%\system32\wbem\winmgmt /unregserver
%windir%\system32\wbem\winmgmt /regserver
%windir%\system32\wbem\winmgmt /resyncperf
as Christopher Catlett says
From: Eswar Koneti 
Sent: Friday, October 11, 2013 12:06 PM
To: [email protected] 
Subject: Re: [mssms] Hardware Inventory is missing

You can try compiling the mof file if there Are any syntax errors. 
I think you can get default one from configmgr source folder.. Haven't checked 
if it is avilable in source or not. Give a try.
I use this script anytime if wmi errors 
http://eskonr.com/2009/03/how-to-troubleshoot-the-systems-which-has-wmi-issues-rebuild-wmi-repository/

It is. Not always good to delete the repository and create new one since you 
will lost all inventory from wmi. 

Sent From Galaxy Note, please excuse any typo's as result.

--- Original Message ---

From: "Bogdan Radu" <[email protected]>
Sent: October 11, 2013 4:49 PM
To: [email protected]
Subject: Re: [mssms] Hardware Inventory is missing


Hi,

I check my configuration.mof path “C:\Program Files\Microsoft Configuration 
Manager\inboxes\clifiles.src\hinv”

I attach the file, but as far as I remember I never made any changes to it.

Also...in “C:\Program Files\Microsoft Configuration Manager\data\hinvarchive” I 
have other 4 bck files.




Is there a way to rebuild my configuration.mof ?

I`m in a critical situation right now, because I don`t have Hardware Inventory 
Cycle on any of my clients :-(

Thanks.



From: Jimmy Martin 
Sent: Thursday, October 10, 2013 5:54 PM
To: [email protected] 
Subject: RE: AW: [mssms] Hardware Inventory is missing

Remove whatever you just added to the configuration.mof…  you hosed yourself! J



After a couple policy checkins u’ll be solid again




Jimmy Martin | ENGINEER-SYSTEMS II | BMHCC - CORPORATE | 
(901) 227-8209 | [email protected] 

The opinions expressed above are not necessarily those of Baptist.



From: [email protected] [mailto:[email protected]] On 
Behalf Of Bogdan Radu
Sent: Thursday, October 10, 2013 9:47 AM
To: [email protected]
Subject: Re: AW: [mssms] Hardware Inventory is missing



Hello Andrew,



Well...to be honest with you, I had one, pointed to All System collection, only 
with Hardware Inventory.. but I deleted.



Now I only have the Default one.





From: Craig Andrew (OIZ) 

Sent: Thursday, October 10, 2013 3:42 PM

To: [email protected] 

Subject: AW: [mssms] Hardware Inventory is missing



Do you have any custom client settings? 



Von: [email protected] [mailto:[email protected]] Im 
Auftrag von Bogdan Radu
Gesendet: Donnerstag, 10. Oktober 2013 14:14
An: [email protected]
Betreff: [mssms] Hardware Inventory is missing



Hi,



I have some issues with Hardware Inventory cycle, is missing from all the 
computers right now:







All the components are installed/enabled.



On the client, I check PolicyAgent.log, and I have these errors:



Failed to trigger policy evaluation for 
CCM_Policy_Policy4.PolicyID="{a4521571-a763-4434-aa69-dcfe84b984f9}",PolicySource="SMS:S01",PolicyVersion="14.00"

Failed evaluation of policy 
CCM_Policy_Policy4.PolicyID="{a4521571-a763-4434-aa69-dcfe84b984f9}",PolicySource="SMS:S01",PolicyVersion="14.00"





http://blog.coretech.dk/rja/case-of-the-missing-hardware-inventory/



http://configurationmanagerblog.blogspot.ro/2011/07/hardware-inventory-action-missing.html





>From PolicyEvaluator.log I have these:



Already sent a policy rule application failure status message within the last 6 
hours, not sending.    PolicyAgent_PolicyEvaluator    10/10/2013 3:08:44 PM    
33208 (0x81B8)

Failed to apply policy rule {6c82fdd0-36ba-40b6-a7a8-4cc163e60adc}.

The policy 
CCM_Policy_Policy4.PolicyID="{a4521571-a763-4434-aa69-dcfe84b984f9}",PolicySource="SMS:S01",PolicyVersion="14.00"
 failed to compile. State has been set to 'Error' and policy will be rolled 
back.





So what I did was to disable and then re-enable “Hardware Inventory” and 
“Software Inventory” from Default Settings.



I reinstall the client, no luck since.



Anyone have any ideas please ?



Thanks. Regards.







This message and any files transmitted with it may contain legally privileged, 
confidential, or proprietary information. If you are not the intended recipient 
of this message, you are not permitted to use, copy, or forward it, in whole or 
in part without the express consent of the sender. Please notify the sender of 
the error by reply email, disregard the foregoing messages, and delete it 
immediately.




P Please consider the environment before printing this email...








Reply via email to