Windows Server 2008 R2 - Copying and pasting a non existing dll

0

Is it safe to copy/replace the "PeerDistSh.dll" in a Windows Server 2008 R2 Standard? The inexitence of this file seams to not let Windows Update actually update Windows.

After running a SFC /SCANNOW, I realise that this tool was not able to succesfully repair the corrupted files... :

FINDSTR /C:"[SR]" %WINDIR%\Logs\CBS\CBS.log

2014-07-23 10:11:01, Info                  CSI    00000344 [SR] Cannot repair member file [l:28{14}]"PeerDistSh.dll" of Microsoft-Windows-PeerDist-Common, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-07-23 10:11:02, Info                  CSI    00000345 [SR] Cannot repair member file [l:28{14}]"PeerDistSh.dll" of Microsoft-Windows-PeerDist-Common, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-07-23 10:14:56, Info                  CSI    000004fe [SR] Cannot repair member file [l:28{14}]"PeerDistSh.dll" of Microsoft-Windows-PeerDist-Common, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing
2014-07-23 10:14:56, Info                  CSI    000004ff [SR] Cannot repair member file [l:28{14}]"PeerDistSh.dll" of Microsoft-Windows-PeerDist-Common, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, file is missing

I know I could do something like this, but the files does not exist on the system:

TAKEOWN /F C:\Windows\System32\PeerDistSh.dll
ICACLS C:\Windows\System32\PeerDistSh.dll /GRANT Administrators:F
COPY K:\tmp\PeerDistSh.dll C:\Windows\System32\PeerDistSh.dll

Is simply copying and pasting the dll from a healty environment a safe solution?

user351296

Posted 2014-08-11T18:16:54.763

Reputation: 1

Question was closed 2014-12-16T12:26:54.673

Answers

1

Should be fine, except you should force it into the SFC repository (WinSxS) and then let SFC put it back where it should go (the "file not found" error is SFC telling you it can't find the known-good copy in the repository when trying to replace the one missing from System32).

Ƭᴇcʜιᴇ007

Posted 2014-08-11T18:16:54.763

Reputation: 103 763

Might help if you tell him how to do that ;-) – Ramhound – 2014-08-11T18:58:10.100

@Ramhound I'd explain it but he already showed how to do It (basically), he just used the wrong folder. ;) I see your point though.. – Ƭᴇcʜιᴇ007 – 2014-08-11T18:59:14.230

Took me a minute to realize what that last command was doing. – Ramhound – 2014-08-11T19:06:23.943

@Ƭᴇcʜιᴇ007 I'm not sure what I have to do. Where exactly am I supposed to copy the dll? Witch folder in "C:\Windows\WinSxS"? – user351296 – 2014-08-12T17:33:33.463

@Ramhound What command is not clear? I use which wrong folder? – user351296 – 2014-08-12T17:54:23.730

@user351296 - Nothing I didn't fully read the command you issued. – Ramhound – 2014-08-12T18:02:19.807