Add-Type load assembly from network UNC share error 0x80131515

Question:

When you want to add an assembly from a network UNC share using the command:

you might face such an error:

How can I fix this problem?

Answer:

The key is to allow for loading an assembly from a network path for a PowerShell executable. It can be done by creating the two files

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.config C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe.config

and paste this code:

Source:

Add-Type load assembly from network UNC share error 0x80131515 by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply