Problem using psexec to remotely GAC a file

Posted by Andrew Dunaway on Server Fault See other posts from Server Fault or by Andrew Dunaway
Published on 2010-03-17T22:28:41Z Indexed on 2010/03/17 22:31 UTC
Read the original article Hit count: 730

Filed under:
|

As part of a deployment process I am trying to GAC a series of files. The actual build process occurs on a build server, and I am trying to use psexec to GAC the files on whichever machine has requested the build.

The current line I am trying to execute is:

C:\PsTools>psexec.exe \COMPUTER -u USER -p PASS gacutil.exe -i Assembly.dll -f

The error that I am getting back is:

Failure adding assembly to the cache: The system cannot find the file specified.

So apparently the dll reference is on the remote box, and unfortunately the dll is sitting on the build box. Is there any way to just do this with psexec somehow, or do I need to copy it to some temporary location on the \\COMPUTER? I know there are commands to copy the executable as part of the psexec process, but I can't seem to find anything similar for supporting files.

© Server Fault or respective owner

Related posts about psexec

Related posts about gac