Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > how to enter #PRAGMA AUTORECOVER in mof files

Reply
Thread Tools Display Modes

how to enter #PRAGMA AUTORECOVER in mof files

 
 
John
Guest
Posts: n/a

 
      12-05-2008
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.

 
Reply With Quote
 
 
 
 
Mark L. Ferguson
Guest
Posts: n/a

 
      12-05-2008
I would stop the WMI service, and edit the MOF, and restart the WMI service.
From a command prompt:
net stop wmimgmt
<edit MOF>
net start wmimgmt
--
Use the "Ratings" feature. It helps the new users.
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales...help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson

"John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
news:8626E63C-9B15-457A-A976-...
> 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.
>

 
Reply With Quote
 
John
Guest
Posts: n/a

 
      12-05-2008
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.


"Mark L. Ferguson" <> wrote in
message news:FAA80727-CF11-47FC-BEEE-...
>I would stop the WMI service, and edit the MOF, and restart the WMI
>service.
> From a command prompt:
> net stop wmimgmt
> <edit MOF>
> net start wmimgmt
> --
> Use the "Ratings" feature. It helps the new users.
> Please use the Communities guidelines when posting.
> http://www.microsoft.com/wn3/locales...help_en-us.htm
> Mark L. Ferguson MS-MVP
> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>
> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
> news:8626E63C-9B15-457A-A976-...
>> 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.
>>


 
Reply With Quote
 
Mark L. Ferguson
Guest
Posts: n/a

 
      12-05-2008
It sounds like Malware has stopped your RPC service. I would do a scan for
an invader.

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

"John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
news5EEF654-D5CA-4FF2-8864-...
> 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.
>
>
> "Mark L. Ferguson" <> wrote in
> message news:FAA80727-CF11-47FC-BEEE-...
>>I would stop the WMI service, and edit the MOF, and restart the WMI
>>service.
>> From a command prompt:
>> net stop wmimgmt
>> <edit MOF>
>> net start wmimgmt
>> --
>> Use the "Ratings" feature. It helps the new users.
>> Please use the Communities guidelines when posting.
>> http://www.microsoft.com/wn3/locales...help_en-us.htm
>> Mark L. Ferguson MS-MVP
>> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>>
>> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
>> news:8626E63C-9B15-457A-A976-...
>>> 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.
>>>

>

 
Reply With Quote
 
John
Guest
Posts: n/a

 
      12-05-2008
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!
"Mark L. Ferguson" <> wrote in
message news:31203DF3-11A5-4CD5-A57D-...
> It sounds like Malware has stopped your RPC service. I would do a scan for
> an invader.
>
> --
> Use the "Ratings" feature. It helps the new users.
> Please use the Communities guidelines when posting.
> http://www.microsoft.com/wn3/locales...help_en-us.htm
> Mark L. Ferguson MS-MVP
> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>
> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
> news5EEF654-D5CA-4FF2-8864-...
>> 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.
>>
>>
>> "Mark L. Ferguson" <> wrote in
>> message news:FAA80727-CF11-47FC-BEEE-...
>>>I would stop the WMI service, and edit the MOF, and restart the WMI
>>>service.
>>> From a command prompt:
>>> net stop wmimgmt
>>> <edit MOF>
>>> net start wmimgmt
>>> --
>>> Use the "Ratings" feature. It helps the new users.
>>> Please use the Communities guidelines when posting.
>>> http://www.microsoft.com/wn3/locales...help_en-us.htm
>>> Mark L. Ferguson MS-MVP
>>> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>>>
>>> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
>>> news:8626E63C-9B15-457A-A976-...
>>>> 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.
>>>>

>>


 
Reply With Quote
 
John
Guest
Posts: n/a

 
      12-05-2008

"I have looked under services and it looks as if WMI is on manual, is this
right?

 
Reply With Quote
 
Mark L. Ferguson
Guest
Posts: n/a

 
      12-05-2008
Not usually, click start to see if automatic would work

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

"John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
news:C52973CF-26DE-45B2-AE82-...
>
> "I have looked under services and it looks as if WMI is on manual, is this
> right?


 
Reply With Quote
 
John
Guest
Posts: n/a

 
      12-06-2008
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
"Mark L. Ferguson" <> wrote in
message news:0C9309E8-3891-452A-9041-...
> Not usually, click start to see if automatic would work
>
> --
> Use the "Ratings" feature. It helps the new users.
> Please use the Communities guidelines when posting.
> http://www.microsoft.com/wn3/locales...help_en-us.htm
> Mark L. Ferguson MS-MVP
> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>
> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
> news:C52973CF-26DE-45B2-AE82-...
>>
>> "I have looked under services and it looks as if WMI is on manual, is
>> this right?

>


 
Reply With Quote
 
Mark L. Ferguson
Guest
Posts: n/a

 
      12-06-2008
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_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson

"John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
news:22873433-3EB4-436C-B9FD-...
> 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
> "Mark L. Ferguson" <> wrote in
> message news:0C9309E8-3891-452A-9041-...
>> Not usually, click start to see if automatic would work
>>
>> --
>> Use the "Ratings" feature. It helps the new users.
>> Please use the Communities guidelines when posting.
>> http://www.microsoft.com/wn3/locales...help_en-us.htm
>> Mark L. Ferguson MS-MVP
>> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>>
>> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
>> news:C52973CF-26DE-45B2-AE82-...
>>>
>>> "I have looked under services and it looks as if WMI is on manual, is
>>> this right?

>>

>

 
Reply With Quote
 
John
Guest
Posts: n/a

 
      12-06-2008
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!


"Mark L. Ferguson" <> wrote in
message news:0D4DB2FE-7DCC-4B63-ADA7-...
> 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_en-us.htm
> Mark L. Ferguson MS-MVP
> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>
> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
> news:22873433-3EB4-436C-B9FD-...
>> 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
>> "Mark L. Ferguson" <> wrote in
>> message news:0C9309E8-3891-452A-9041-...
>>> Not usually, click start to see if automatic would work
>>>
>>> --
>>> Use the "Ratings" feature. It helps the new users.
>>> Please use the Communities guidelines when posting.
>>> http://www.microsoft.com/wn3/locales...help_en-us.htm
>>> Mark L. Ferguson MS-MVP
>>> https://mvp.support.microsoft.com/profile/Mark.Ferguson
>>>
>>> "John" <john(no spam)@trefonen.eclipse.co.uk> wrote in message
>>> news:C52973CF-26DE-45B2-AE82-...
>>>>
>>>> "I have looked under services and it looks as if WMI is on manual, is
>>>> this right?
>>>

>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter Key kaylie_guurl Windows Vista General Discussion 12 02-27-2010 09:59 PM
What should I enter???? Kmccall Windows Vista Mail 2 04-23-2008 05:47 AM
Enter Key Chia Windows Vista Performance 1 11-26-2007 03:46 PM
Is there anyway to make a "secure" drive, that you must enter a password to view files? Tim Windows Vista General Discussion 3 08-15-2007 04:55 PM
Vista Ultimate x64 Will Not Enter Sleep Mode but will Enter Hibern reductant Windows Vista General Discussion 4 05-07-2007 09:41 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59