PowerShell中使用.NET将程序集加入全局程序集缓存(powershell怎么使用)一看就会

随心笔谈2年前发布 admin
177 0 0
广告也精彩


[Reflection.Assembly]::LoadWithPartialName(“System.EnterpriseServices”) > $null
[System.EnterpriseServices.Internal.Publish] $publish=New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall(“<DLL的完整路径>”)

© 版权声明

相关文章