Solved System.Management.Automation.dll

pscowboy

New member
Pro User
Local time
3:56 AM
Messages
233
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)
or:
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 Computer My Computer

At a glance

W7 Home Premium 32bit
Computer Manufacturer/Model Number
8 home-builds from the 80's into 2004
OS
W7 Home Premium 32bit
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:
http://www.sevenforums.com/tutorials/1538-sfc-scannow-command-system-file-checker.html
 

My Computer My Computer

At a glance

Windows 10 Pro x64Intel Core i7 4790K @ 4.5GHz32GB DDR3Nvidia GeForce GTX970
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
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 Computer My Computer

At a glance

W7 Home Premium 32bit
Computer Manufacturer/Model Number
8 home-builds from the 80's into 2004
OS
W7 Home Premium 32bit
I extracted system.management.automation.dll 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\msil_system.management.automation_31bf3856ad364e35_6.1.7601.17514_none_236c706c3e93d144.

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 Computer My Computer

At a glance

W7 Home Premium 32bit
Computer Manufacturer/Model Number
8 home-builds from the 80's into 2004
OS
W7 Home Premium 32bit
Fantastic! :)
 

My Computer My Computer

At a glance

Windows 10 Pro x64Intel Core i7 4790K @ 4.5GHz32GB DDR3Nvidia GeForce GTX970
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
Back
Top