System.Management.Automation.dll


  1. Posts : 233
    W7 Home Premium 32bit
       #1

    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 Computer


  2. Posts : 2,528
    Windows 10 Pro x64
       #2

    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 Computer


  3. Posts : 233
    W7 Home Premium 32bit
    Thread Starter
       #3

    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


  4. Posts : 233
    W7 Home Premium 32bit
    Thread Starter
       #4

    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 Computer


  5. Posts : 2,528
    Windows 10 Pro x64
       #5

    Fantastic! :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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:40.
Find Us