VSS Error

Hi guys, on my Server 2012 server i have these errors when i run VSSadmin on the majority of writers:


Writer name: 'WMI Writer'
   Writer Id: {a6ad56c2-b509-4e6c-bb19-49d8f43532f0}
   Writer Instance Id: {e8c592e0-cba9-477d-92cc-bce5d859db9b}
   State: [9] Failed
   Last error: Timed out
LVL 4
Cobra25Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
You could try re-registering the WMI service, perform following commands in an elevated Command prompt:

cd %windir%\system32\wbem

Open in new window


for /f /%s in ('dir /b *.dll) do regsvr32 /s %s

Open in new window


wmiprvse /regserver

Open in new window


winmgmt /regserver

Open in new window


Once done, open a new Command prompt and type: "vssadmin list writers"
0
systechadminConsultantCommented:
Please restart the WMI services on the server and then check the VSS writer status
0
Cobra25Author Commented:
spravtek: i get this error on the second command:

/%s was unexpected at this time.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Zephyr ICTCloud ArchitectCommented:
Hmmm...

What if you try it like this:

for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s

Open in new window

0
Cobra25Author Commented:
Same message :(
0
Zephyr ICTCloud ArchitectCommented:
Still on the same? "/%s"

This should work though ... Ok what about like this:

for /f %s in ('dir /b *.dll') do regsvr32 /s %s

Open in new window


If it still fails, instead of copy/paste maybe try typing it ...
0
Cobra25Author Commented:
That worked, except for the last command: winmgmt /regserver
0
Zephyr ICTCloud ArchitectCommented:
You can check the repo with "winmgmt /verifyrepository"

Also, check with vssadmin after restarting Windows Management Instrumentation service.
0
Cobra25Author Commented:
That helped with some, some others still show failed.
0
Zephyr ICTCloud ArchitectCommented:
Can you tell me which still show failed?

Might be we need to really reset everything ... Another one to try is this one:

winmgmt /salvagerepository
0
Cobra25Author Commented:
wmi is consistent. These are the failed ones:

Writer name: 'System Writer'
   Writer Id: {e8132975-6f93-4464-a53e-1050253ae220}
   Writer Instance Id: {a050b538-4e10-4c11-8c19-8b97396f828f}
   State: [9] Failed
   Last error: Timed out


Writer name: 'FRS Writer'
   Writer Id: {d76f5a28-3092-4589-ba48-2958fb88ce29}
   Writer Instance Id: {7728a3e6-0f40-4ba2-88b3-97e2d03f774a}
   State: [9] Failed
   Last error: Timed out


Writer name: 'WIDWriter'
   Writer Id: {8d5194e1-e455-434a-b2e5-51296cce67df}
   Writer Instance Id: {d24b59e2-f1aa-43d0-b306-a108210bb4c9}
   State: [9] Failed
   Last error: Timed out


Writer name: 'IIS Config Writer'
   Writer Id: {2a40fd15-dfca-4aa8-a654-1f8c654603f6}
   Writer Instance Id: {a28b759d-943c-487c-9294-138890a811b5}
   State: [9] Failed
   Last error: Timed out

Writer name: 'NTDS'
   Writer Id: {b2014c9e-8711-4c5c-a5a9-3cf384484757}
   Writer Instance Id: {c75e7eeb-5ea9-44fd-a4a6-9cd7e1513853}
   State: [9] Failed
   Last error: Timed out

Writer name: 'NPS VSS Writer'
   Writer Id: {35e81631-13e1-48db-97fc-d5bc721bb18a}
   Writer Instance Id: {71b5fff8-e870-4119-8950-07e68baca1a3}
   State: [9] Failed
   Last error: Timed out
0
Zephyr ICTCloud ArchitectCommented:
Well ... That's not good ...

We can try re-registring the vss core components:

cd /d %windir%\system32
net stop vss
net stop swprv
regsvr32 /s ole32.dll
regsvr32 /s oleaut32.dll
regsvr32 /s vss_ps.dll
vssvc /register
regsvr32 /s /i swprv.dll
regsvr32 /s /i eventcls.dll
regsvr32 /s es.dll
regsvr32 /s stdprov.dll
regsvr32 /s vssui.dll
regsvr32 /s msxml.dll
regsvr32 /s msxml3.dll
regsvr32 /s msxml4.dll
vssvc /register
net start swprv
net start vss

Open in new window

0
Cobra25Author Commented:
Spravtek, those commands didnt seem to help :(
0
Zephyr ICTCloud ArchitectCommented:
The drastic measure:

- Stop the WMI service.
- Rename the C:\Windows\system32\wbem\repository folder (eg repository-bkp)
- Re-register DLLs: cmd.exe /C "for /f %s in ('dir /b *.dll') do regsvr32 /s %s" (yes again :-) )
- Also re-register the MOF files: cmd.exe /C "for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s"
- Start the WMI service.
0
Cobra25Author Commented:
Is there a risk by doing this, i dont have a current backup of the server.
0
Zephyr ICTCloud ArchitectCommented:
Well, since we take a backup of the current repository it's less risky, but that being said, there's always a risk naturally...

But there should not be a problem normally ...
0
Cobra25Author Commented:
the first part is done, for the MOF's it threw this output:

C:\Windows\system32>cmd.exe /C "for /f %s in ('dir /b *.mof *.mfl') do mofcomp
s

C:\Windows\system32>mofcomp psmodulediscoveryprovider.mof
Microsoft (R) MOF Compiler Version 6.2.9200.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: psmodulediscoveryprovider.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on lines 4 -
11:
Error Number: 0x80070422, Facility: Win32
Description: The service cannot be started, either because it is disabled or be
ause it has no enabled devices associated with it.
Compiler returned error 0x80070422
C:\Windows\system32>mofcomp replprov.mof
Microsoft (R) MOF Compiler Version 6.2.9200.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: replprov.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on lines 4 -
7:
Error Number: 0x80070422, Facility: Win32
Description: The service cannot be started, either because it is disabled or be
ause it has no enabled devices associated with it.
Compiler returned error 0x80070422
C:\Windows\system32>mofcomp RestartManager.mof
Microsoft (R) MOF Compiler Version 6.2.9200.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: RestartManager.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on lines 5 -
8:
Error Number: 0x80070422, Facility: Win32
Description: The service cannot be started, either because it is disabled or be
ause it has no enabled devices associated with it.
Compiler returned error 0x80070422
C:\Windows\system32>mofcomp RestartManagerUninstall.mof
Microsoft (R) MOF Compiler Version 6.2.9200.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: RestartManagerUninstall.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1:
Error Number: 0x80070422, Facility: Win32
Description: The service cannot be started, either because it is disabled or be
ause it has no enabled devices associated with it.
Compiler returned error 0x80070422
0
Zephyr ICTCloud ArchitectCommented:
Can you still start WMI?
0
Cobra25Author Commented:
YEs i started WMI and it created a new repository folder.
0
Zephyr ICTCloud ArchitectCommented:
ok ... That's good, what about vssadmin?
0
Cobra25Author Commented:
still throws the same errors
0
Zephyr ICTCloud ArchitectCommented:
Crap ... Hmmm

We can try this one:
Takeown /f %windir%\winsxs\temp\PendingRenames /a 
icacls %windir%\winsxs\temp\PendingRenames /grant "NT AUTHORITY\SYSTEM:(RX)"
icacls %windir%\winsxs\temp\PendingRenames /grant "YourDomain\Domain Admins":(RX)
icacls %windir%\winsxs\temp\PendingRenames /grant "YourDomain\Domain Users":(RX)
icacls %windir%\winsxs\temp\PendingRenames /grant "NT Service\trustedinstaller:(F)"
icacls %windir%\winsxs\temp\PendingRenames /grant BUILTIN\Users:(RX)

Takeown /f %windir%\winsxs\filemaps\* /a 
icacls %windir%\winsxs\filemaps\*.* /grant "NT AUTHORITY\SYSTEM:(RX)"
icacls %windir%\winsxs\filemaps\*.* /grant "NT Service\trustedinstaller:(F)"
icacls %windir%\winsxs\filemaps\*.* /grant BUILTIN\Users:(RX)

net stop cryptsvc && net start cryptsvc

net stop vss && net start vss

net stop Winmgmt && net start Winmgmt

Open in new window


It's from this Technet article
0
Cobra25Author Commented:
Still no luck :(
0
Zephyr ICTCloud ArchitectCommented:
Well ... There's a bat-file you can run, it will do almost similar thing as before but some extra touches, I hope it helps this time, so put following in a bat-file and execute (best right-click run as admin):

net stop "System Event Notification Service"
net stop "Background Intelligent Transfer Service"
net stop "COM+ Event System"
net stop "Microsoft Software Shadow Copy Provider "
net stop "Volume Shadow Copy"
cd /d %windir%\system32
net stop Vss
net stop swprv
regsvr32 /s ATL.DLL
regsvr32 /s comsvcs.DLL
regsvr32 /s credui.DLL
regsvr32 /s CRYPTNET.DLL
regsvr32 /s CRYPTUI.DLL
regsvr32 /s dhcpqec.DLL
regsvr32 /s dssenh.DLL
regsvr32 /s eapqec.DLL
regsvr32 /s esscli.DLL
regsvr32 /s FastProx.DLL
regsvr32 /s FirewallAPI.DLL
regsvr32 /s kmsvc.DLL
regsvr32 /s lsmproxy.DLL
regsvr32 /s MSCTF.DLL
regsvr32 /s msi.DLL
regsvr32 /s msxml3.DLL
regsvr32 /s ncprov.DLL
regsvr32 /s ole32.DLL
regsvr32 /s OLEACC.DLL
regsvr32 /s OLEAUT32.DLL
regsvr32 /s PROPSYS.DLL
regsvr32 /s QAgent.DLL
regsvr32 /s qagentrt.DLL
regsvr32 /s QUtil.DLL
regsvr32 /s raschap.DLL
regsvr32 /s RASQEC.DLL
regsvr32 /s rastls.DLL
regsvr32 /s repdrvfs.DLL
regsvr32 /s RPCRT4.DLL
regsvr32 /s rsaenh.DLL
regsvr32 /s SHELL32.DLL
regsvr32 /s shsvcs.DLL
regsvr32 /s /i swprv.DLL
regsvr32 /s tschannel.DLL
regsvr32 /s USERENV.DLL
regsvr32 /s Vss_ps.DLL
regsvr32 /s wbemcons.DLL
regsvr32 /s wbemcore.DLL
regsvr32 /s wbemess.DLL
regsvr32 /s wbemsvc.DLL
regsvr32 /s WINHTTP.DLL
regsvr32 /s WINTRUST.DLL
regsvr32 /s wmiprvsd.DLL
regsvr32 /s wmisvc.DLL
regsvr32 /s wmiutils.DLL
regsvr32 /s wuaueng.DLL
Cd /d %systemroot%\syswow64
regsvr32 /s ole32.dll
regsvr32 /s Vss_ps.dll
regsvr32 /s es.dll
regsvr32 /s stdprov.dll
regsvr32 /s msxml3.dll
regsvr32 /s msxml.dll
regsvr32 /s msxml4.dll
net start "COM+ Event System"
sfc /SCANFILE=%windir%\system32\catsrv.DLL
sfc /SCANFILE=%windir%\system32\catsrvut.DLL
sfc /SCANFILE=%windir%\system32\CLBCatQ.DLL
net start "COM+ Event System" 

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.