Search code examples
.netdeploymentgacglobal-assembly-cache

How can I automate the installation of assemblies to the GAC over a network?


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?


Solution

  • 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

    1. Use PowerShell V2's remoting feature to run the command on all of the machines
    2. Use Group Policy to run an MSI on every machine which will install the assembly

    I think #1 has the best shot.