Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: System.Management.Automation.dll

20 Jan 2012   #1

W7 Home Premium 32bit

An sfc scan has revealed that the "titled" dll is corrupt in one of my pc's. The store copy is corrupt as well.
Being a chief component of the Windows Power Shell, this would be something to fix quickly.

I deciphered the CBS log, but still cannot figure out its' location from there.
From Google searches ideas; it's not @:
windows\system32\WindowsPowerShell\v2.0 or v1.0 (This folder doesn't exist)
Program Files\Reference Assemblies\Microsoft\WindowsPowerShell\v2.0 or v1.0
(This folder doesn't exist either)

I was hoping to extract from W7 install disc and place it in wherever store is and wherever it exists on my machine.

My System SpecsSystem Spec
20 Jan 2012   #2

Windows 10 Pro x64

You really shouldn't extract manually, because these files are actually linked and tracked in the side-by-side (WinSxS) store. The best way to get it back (if you do have that Windows installation disc) is to run sfc /scannow from an elevated cmd prompt and let it fix it (and put the proper files back), and any other issues with protected files that might exist on that system.

The tutorial on sfc is here:
SFC /SCANNOW Command - System File Checker
My System SpecsSystem Spec
20 Jan 2012   #3

W7 Home Premium 32bit

How do I get sfc to work with the install disc, rather than look into the stores?
I have run sfc 3 times. It cannot fix the issue.
The dll I need is corrupt in the store as well.
My System SpecsSystem Spec

24 Jan 2012   #4

W7 Home Premium 32bit

I extracted from the install dvd using 7-zip.
This was in the Sources\Windows\winsxs\(written out just below) folder.

I took ownership of C:\Windows\winsxs\ 3d144.

Right-click that folder-Properties-Security-Advanced-Owner-Edit-pick Administrators; check off "Replace owner on ...." and OK out.

Right-click again-Properties-Security-Edit. Select Administrators and check Full Control then OK out. Delete the corrupt dll in that folder and copy the newly extracted one.

Now you have to give ownership back to TrustedInstaller.
Right-click that very long-named folder-Properties-Security-Edit. Here you change Administrators permissions back to Read & Execute, List, and Read; OK out.
Right-click again-Properties-Security-Advanced-Owner-Edit. Go into "Other users or groups" and type in NT Service\TrustedInstaller to add its' name back to the list. OK once. Here you select TrustedInstaller and check off "Replace owner ....." and OK out.

I ran sfc /scannow once in an elevated prompt. It still found that dll to be a problem, but I think a repair was pending upon a reboot. I restarted.
Then, using the DART 7.0 bootable multi-utility disc (an IT favorite) I performed an sfc /scannow offline after another restart. I was rewarded with no integrity problems. The Windows Power Shell on this pc is clean.

Huge thanks to Brink for his tutorials on extractions & permissions giving me the procedures for all this work.
My System SpecsSystem Spec
24 Jan 2012   #5

Windows 10 Pro x64

Fantastic! :)
My System SpecsSystem Spec


Thread Tools

Similar help and support threads
Thread Forum
Inventory Management System
Sorry if this is in the wrong section, but I am hoping someone can help me nonetheless. My company is looking for an inventory system that works with Active Directory. Preferably something that is cloud based. Also, we would like a hand held device that you scan the bar code on the laptop/...
General Discussion
System Restore Management: Is it actually possible?
I've used System Restore since XP days and it's rescued me from system problems many times. So I'm a fan of the process. My new W7 system runs on a 240GB SSD, and, of course, it's into this limited space that Windows saves the Restore Point files. I'd prefer to store these somewhere else,...
Performance & Maintenance
Too much automation
Currently, I have 2 issues with Windows 7. 1. When I inserted a memory card into the built-in card reader, something called "Save Image Wizard" opens. The only Save Image Wizard I need is ME. How do I stop it from opening? 2. After closing the above window, the image processing program that...
General Discussion
N/e one using 7 for home automation?
Like lighting control, turning the sprinklers on and off, etc...? I'm thinking of putting the HTPC to use by hooking it up to the lights via a motion sensor so that when I get home and open the door, the sensor will wake the PC up, the PC will then turn on the lights in the house and play some...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:34.
Twitter Facebook Google+