how to enter #PRAGMA AUTORECOVER in mof files

J

John

I have a recurring WMI error 10 report. I have tried what I can find, and
understand, from web searching. I tried recompiling the MOF file but had a
number of reports ending "To include this MOF file when the WMI Repository
is automatically reconstructed, place the #PRAGMA AUTORECOVER statement on
the first line of the MOF file."
I have open one of the files using notepad and indeed it didn't have #PRAGMA
AUTORECOVER. But the file is clearly locked and I am unable to save the
amended mof file.
I would be grateful for how to carry out these amendments to so as to see
if this does solve the WMI error. But I am not too expert at this things so
please make it "simple". Thanks.
 
J

John

Thanks fro reply. Regrtably all I get is at the comand prompt
C:\Users\John laptop>net stop wmimgmt
System error 1060 has occurred.

The specified service does not exist as an installed service.
 
J

John

Mark I will scan with Spybot and when able spyware dr. The latter is running
as a service and does a itelli-scan daily so will do a deep scan tomarrow!
 
J

John

Sorry for dely, socalevent and shopingb interveened!
Started service OK.
Tried comand and same result. Tried to start it and C:\windows\system32>net
start wmimgmt
The service name is invalid.

More help is available by typing NET HELPMSG 2185.

tried . NET HELPMSG
2185

C:\windows\system32>2185
'2185' is not recognized as an intoperable program or batch file.

Spybot found two trackers only.

John
 
M

Mark L. Ferguson

the /salvagerepository switch should have functioned without the
modification of any MOF files if the service will run. I would leave the
service running and try the command again, from a Command Prompt (rightclick
the icon, to 'run as administrator')

winmgmt /salvagerepository

--
Use the "Ratings" feature. It helps the new users.
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson
 
J

John

Hi
scan withy Avast and Spyware Dr clean
ran
C:\windows\system32>winmgmt /salvagerepository

WMI repository is consistent
tried
net stop wmimgmt
still same errer

john

again sorry for long gaps my wife has steam coming out over my spending time
on thios rather than other things!
 
M

Mark L. Ferguson

J

John

I think I have got the result (found it had going as the only way I could
get the log open was via wordpad!) I am also not to sure what it meens?


2008-12-06 19:02:37, Info CSI 00000031 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35},
Type neutral, TypeName neutral, PublicKey neutral in the store, hash
mismatch
2008-12-06 19:02:42, Info CSI 00000034 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35},
Type neutral, TypeName neutral, PublicKey neutral in the store, hash
mismatch
2008-12-06 19:12:13, Info CSI 00000163 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35},
Type neutral, TypeName neutral, PublicKey neutral in the store, hash
mismatch
2008-12-06 19:12:14, Info CSI 00000165 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35},
Type neutral, TypeName neutral, PublicKey neutral in the store, hash
mismatch
 
J

John

Located on line a replacmdent file,
http://www.vistax64.com/tutorials/130824-chkdsk-will-not-run-startup-vista.html,
and copied it as instructiions. But is this not for chkdisk not the problem
I started with?
net stop wmimgmt still gets the same errer!

John



Mark L. Ferguson said:
If your original media cannot replace a system file, I would suspect
damage to the original media disk. I would try to find a new copy of the
setup media. (AMD uses Intel architecture (x86) )

--
Use the "Ratings" feature. It helps the new users.
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson

John said:
I think I have got the result (found it had going as the only way I could
get the log open was via wordpad!) I am also not to sure what it meens?


2008-12-06 19:02:37, Info CSI 00000031 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in
the store, hash mismatch
2008-12-06 19:02:42, Info CSI 00000034 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in
the store, hash mismatch
2008-12-06 19:12:13, Info CSI 00000163 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in
the store, hash mismatch
2008-12-06 19:12:14, Info CSI 00000165 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in
the store, hash mismatch
 
M

Mark L. Ferguson

SFC cannot repair your original media file. It reported it corrupt the last
time you ran sfc.
2008-12-06 19:02:37, Info CSI 00000031 [SR] Cannot
repair member file [l:22{11}]"autochk.exe"
You will need a good copy of original media for SFC file replace. It's
possible your SP1 update has a bad copy. I do not know if SP1 replaces
autochk.exe or not.

--
Use the "Ratings" feature. It helps the new users.
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson

John said:
Located on line a replacmdent file,
http://www.vistax64.com/tutorials/130824-chkdsk-will-not-run-startup-vista.html,
and copied it as instructiions. But is this not for chkdisk not the
problem I started with?
net stop wmimgmt still gets the same errer!

John



Mark L. Ferguson said:
If your original media cannot replace a system file, I would suspect
damage to the original media disk. I would try to find a new copy of the
setup media. (AMD uses Intel architecture (x86) )

--
Use the "Ratings" feature. It helps the new users.
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson

John said:
I think I have got the result (found it had going as the only way I
could get the log open was via wordpad!) I am also not to sure what it
meens?


2008-12-06 19:02:37, Info CSI 00000031 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
in the store, hash mismatch
2008-12-06 19:02:42, Info CSI 00000034 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
in the store, hash mismatch
2008-12-06 19:12:13, Info CSI 00000163 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
in the store, hash mismatch
2008-12-06 19:12:14, Info CSI 00000165 [SR] Cannot
repair member file [l:22{11}]"autochk.exe" of Microsoft-Windows-Autochk,
Version = 6.0.6001.18000, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture
neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8
b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral
in the store, hash mismatch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top