关键是允许从网络路径 为PowerShell可执行文件 加载程序集。可以通过创建两个文件来完成
C: Windows System32 WindowsPowerShell v1.0 powershell.exe.config C:
Windows SysWOW64 WindowsPowerShell v1.0 powershell.exe.config
并粘贴以下代码:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <runtime> <loadFromRemoteSources enabled="true"/> </runtime></configuration>



