How to Fix Pwrshsip.dll “Bad Image” Error

When you run a program, especially an Adobe app, the following error may occur:

[program.exe] - Bad Image

C:\Windows\System32\WindowsPowerShell\v1.0\pwrshsip.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support. Error status 0xc000012f.

In some cases, the error code can be one of the following:

  • 0xC0000006
  • 0xC0000020

pwrshsip.dll bad image error


The above error codes mean the module pwrshsip.dll is corrupt and unloadable.



{Bad File} The attributes of the specified mapping file for a section of memory cannot be read.


The instruction at 0x%08lx referenced memory at 0x%08lx. The required data was not placed into memory because of an I/O error status of 0x%08lx.


The specified image file did not have the correct format: it did not have an initial MZ.


To fix the pwrshsip.dll file, run DISM and SFC.

Open an admin Command Prompt window and run these commands:

dism /online /cleanup-image /restorehealth
cd /d "C:\windows\system32\windowspowershell\v1.0"
takeown /f pwrshsip.dll /a
icacls pwrshsip.dll /grant administrators:F
del pwrshsip.dll /f
sfc /scanfile="C:\windows\system32\windowspowershell\v1.0\pwrshsip.dll"

That should repair the corrupted pwrshsip.dll file.

If SFC can’t restore the file for some reason, you can download the appropriate version of the file from Microsoft and copy it to “C:\Windows\System32\WindowsPowerShell\v1.0\”. See How to Download Missing System files from Microsoft.

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

Leave a Comment