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
pscowboy

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 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
cluberti

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
pscowboy

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
pscowboy

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
cluberti

Windows 10 Pro x64
 
 

Fantastic!
My System SpecsSystem Spec
Reply

 System.Management.Automation.dll




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Batch file Help - automation
Been looking around for hours. I have my own computer repair shop in a small town/city with about 10 competitors. I always drop my email - remote support - online scheduling site on the desktop. Well coming into virus season soon . Winter and my old man who is 80 wants to help, keep his mind going....
General Discussion
Internet Explorer F12 Dev. Tools Automation.
Hello. I am looking to automate the starting of network profile of IE F12 Dev. Tools. I have Googled to the point of being tired of Googling looking for a solution. Is there a way to automate that aspect of IE? Thank you for your help. BitByBit01
Browsers & Mail
Task Automation
Hi :) I'm looking for a software that can automate a couple of key strokes at start up of Windows - 7 64bit (something like programmable macro), any suggestions please, freeware would be nice but retail is a possibility :)
Software
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
Automation block error in IE8
I have a problem with a website I use for work. I work for a tech support company and I am gettin an automation block error when I am in IE8. Here is the problem I am having I can get the site to work fine if I right click and run as administrator. I am new to windows 7 and I am the only account on...
Browsers & Mail
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 22:18.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App