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
 
 
System.Management.Automation.dll

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 Windows 7 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 Server 2008 R2
 
 

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 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_236c706c3e9 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 Server 2008 R2
 
 

Fantastic!
My System SpecsSystem Spec
Reply

 System.Management.Automation.dll




Thread Tools



Similar help and support threads for2: System.Management.Automation.dll
Thread Forum
voice entry issues with x10 home automation Software
Too much automation General Discussion
System Restore Manager: A complete Windows System Restore Management Backup and Restore
QRM Plus a System Restore Management application Backup and Restore
NVIDIA nForce PCI System Management Drivers
Automation block error in IE8 Browsers & Mail
N/e one using 7 for home automation? 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:48 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33