2
1
Let me just check one thing first. Doing an export through Regedit (range: all) is the equivalent of making a backup of the Windows registry, right?
So I saved the Reg file to disk drive L yesterday. Now I would like to go back to using that old version of the registry, in order to revert any changes made to the registry. And this is done through the import option in Regedit, right?
Does importing a Reg file through Regedit mean merging the information from the Reg file to what's already there, or does it overwrite everything with what's being imported? I know that opening small single Reg files with registry fixes prompts whether or not to merge it with the registry. But how about the Reg files generated through the export option of Regedit?
Anyhow... so I started Regedit and then went to File, Import, selected my Reg file, and then clicked Open. It took some time to import, I mean the file is like 480 MB or something. But then I got an error message saying something along the lines "not all keys were imported" or similar because it was "in use by the system" or similar. So for that reason it couldn't import everything.
So I decided to reboot into safe mode with command line support. Now this is what I got.
L:\>reg import "regbackup 2013-06-14.reg"
ERROR: Error accessing the registry.
L:\>
Error accessing the registry? That doesn't tell me anything! What's the error code? What is the cause?...
Now if I look at the task bar I can see an x over the speaker. And if I hover the cursor over it I see it says "the audio service is not running."
Now is this caused by a failed registry import operation or by the fact that I started Windows in safe mode? I'm thinking it should not be persistent... so what if I started in safe mode?... am I not allowed to do that? I know audio is disabled in safe mode, but I'm not in safe mode now. I'm back in normal Windows mode now so the service should be really working now. So this got me thinking that the failed import might have just screwed up the registry somehow.
Long story short: What's causing this error and the audio service to stop? And how do I import to registry what has been exported from it once?
Update
Alright, I took the time to try import the file through Regedit again while in normal Windows mode. So here is the error message I mentioned above.
It reads:
Cannot import L:\regbackup 2013-06-14.reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes.
And what's the natural thing to do if something is being used by a system or some process? You have to close it and try again, right? But how do you close a system and prevent it from using some files while you are performing maintenance or troubleshooting on? Right! You enter safe mode! In safe mode only the bare minimum of drivers and services and processes and whatever, is loaded. I even used the non-graphical safe mode (command line). And when all this fails, then what?...
Update 2
This is just getting better and better... or not!
The audio service is called Winodws Audio. It depends on Windows Audio Endpoint Builder, and RPC (Remote Procedure Call). RPC is already started and working, but I can't make Audio Endpoint start. So I can't start Windows Audio either. So in layman's terms I don't have sound on my computer now after trying to import the registry file. Nice!...
I was getting desperate so I decided to try the regular safe mode with GUI just to make sure I've tried all of them. I started Regedit and tried importing the registry file. I got the same kind of error messages as the one I got when I used the Reg command in cmd (see code block above). I just saw the progress bar and it was importing, and at the end it spits out the error.
Note that the error received in Regedit in safe mode is different from the one received in normal Windows mode.
It was after running safe mode with command line and using Reg command to import registry file that the Windows audio service stopped working. If I try to run the audio service, or the audio endpoint builder, either in safe mode or in normal Windows mode, all I get is errors.
Well obviously the audio endpoint builder can't start in safe mode. But it can't start in normal mode either, and this is concerning now.
So the error I get is:
Error 0x80070003: The system cannot find the path specified.
All this caused by importing the registry file? I can't believe it!
I don't have any system restore point. Any suggestions?
Update 3
What's the "search path" is the error message above talking about?... to the audio DLL??
I tried removing the dependency for Windows Audio Endpoint Builder in registry. That way I assumed that I will be able to start Windows Audio service without it. I changed following values.
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AudioSrv
Value: DependOnService
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AudioEndpointBuilder
Value: DependOnService
I rebooted but it was to no avail. Now I get the message No Audio Output Device is installed in task bar.
Oh yeah, I also checked C:\Windows\System32\
and I have the audiosrv.dll file in place.
I tried re-installing the audio driver and software as suggested on some Microsoft websites but that was to no avail either. I still have the same message in task bar when I hover over the speaker icon.
The next step will be to take a file/folder backup and re-install Windows. Unless someone comes along with a suggestion that will solve the issue.
By the way, Windows RE (recover environment) didn't help because there is no issue with starting up Windows. It's mainly used for repairing start-up issues.
Also, running sfc /scannow
produces following.
C:\Windows\system32>sfc /scannow
Beginning system scan. This process will take some time.
There is a system repair pending which requires reboot to complete. Restart
Windows and run sfc again.
C:\Windows\system32>
I tried normal mode, safe mode, console mode, nothing... same message. I suspect that this command became an issue after running the psexec -i -d -s %windir%\regedit.exe
command and then trying to import the Reg file as system account, as suggested by STTR.
I can see on some forums that this type of error is often caused by wrong format. It usually comes up when people are trying to write their own scripts or registry fixes. But Regedit is an MS utility, it should definitely know how to handle the files it exports or imports, right? Perhaps the Reg command treats the Reg file differently? I would expect it to be interoperable... you know, doesn't matter if you use Reg command or Regedit utility... but they are both giving me at least one error, none of them is performing the operation perfectly without hiccups. Why? – Samir – 2013-06-15T16:37:40.187
1"Doing an export through Regedit (range: all) is the equivalent of making a backup of the Windows registry, right?" No, it isn't and that's why your system is broken now. – Der Hochstapler – 2013-06-15T18:19:24.640
@OliverSalzburg What's it good for then? I will try running Windows RE to recover. Any other suggestions? – Samir – 2013-06-15T18:27:06.683
@Sammy run regedit at system account ... – STTR – 2013-06-15T18:29:03.283
@STTR What do you mean by system account? – Samir – 2013-06-15T18:31:09.497
@Sammy Use
ntsd -c qd regedit
orpsexec -i -d -s %windir%\regedit.exe
command. – STTR – 2013-06-15T18:36:09.353@STTR These are not recognized as internal or external commands. Are they supported in Windows RE? And what then? It runs Regedit at system account? And then I import the Reg file or what? – Samir – 2013-06-15T18:47:20.153
@Sammy Let me in answer to the question I will answer your questions so it will be more convenient. WinPE CD - another way. – STTR – 2013-06-15T18:52:59.320
I don't know about
ntsd
but it seems to require Diagnostics and Recovery Toolset (DaRT). I don't know what that is and I don't know how to use it. – Samir – 2013-06-15T22:02:05.893