如何通过网络自动将程序集安装到 GAC?
我需要将相同的程序集安装到 30 多台服务器的 GAC 上。 我不想通过 RDP 连接到每台服务器并安装组装手册。 是否有一种直接的方法可以通过网络将程序集安装到 GAC?
I need to install the same assembly to the GAC for 30+ servers. I would prefer not to have to RDP to each server and install the assembly manual. Is there a straightforward way to install assemblies to the GAC over the network?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为这个问题没有直接的解决方案。 除了将文件放置在磁盘上之外,安装到 GAC 还需要运行命令。 我想了一下这个问题,并提出了以下 2 个想法
我认为#1 具有的 程序集最好的镜头。
I don't think there is a straight forward solution to this problem. Installing to the GAC requires commands to be run in addition to just placing the file on disk. I thought about this for a bit and I came up with the following 2 ideas
I think #1 has the best shot.
如果这是常规要求,您可以尝试一些自动化工具,例如 CruiseControl.net、InstallAce 或 FinalBuilder。 如果这是一次性要求,那么您当然可以使用这些工具的评估版本。
Jared:我有兴趣了解有关 PowerShell remorting 功能的更多信息。 它是否消除了在所有服务器上预安装 PowerShell 的需要?
Windows Management Instrumentation (WMI) 还允许远程执行等,但需要探索如何远程在 GAC 中安装文件,否则 WMI 确实允许其他功能,如远程脚本执行等。
If this is a regular requirement you may try some automation tools like CruiseControl.net, InstallAce or FinalBuilder. If this is one time requirement then certainly you may use the evaluation version of these tools.
Jared: I would be interested to know more about PowerShell remorting features. Does it eleminate the need of PowerShell pre-installed on all servers?
Windows Management Instrumentation (WMI) also allow remote execution etc. but need to explore how to install file in GAC remotely otherwise WMI does allow other features like remote script exectuion etc.