Dear All,

I was wondering if someone could help me please...

I'm going to sinatll an application fromn the script but for some reason gives me an error. It says that the .exe doesn't exist.

I've tried to copy the .exe on the local machine and it works. I'm running the script as "System"

How can I do it? I was thinking to create a folder on the server but I don't knwo what rights I need to give it.


Many thanks!

0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



you need a batch file to map a drive letter for you since the script runs as system.  Create an installed user in ad with read rights to the share.

net use h: \\server\share /user:domain\installer password

run your script

net use h: /delete

Answered 04/03/2014 by: SMal.tmcc
Red Belt

  • or give "everyone" read rights to the share. but I do not recommend this security hole
Please log in to comment
Thank you very much!
So I can put my personal credentials then... 
So if for example my username is spark, my domain is Contoso,  my password XYZ and my .exe file Program.exe 
the batch file will be:
Net use h:\\server\share
/spark:Contoso\Program.exe XYZ
Answered 04/03/2014 by: spArk82a
White Belt

  • net use h: \\server\share /user:contoso\spark XYZ

    h:program.exe /s
    misexec h:\program.msi /qn

    net use h: /delete
Please log in to comment

I've also had luck using pushd and popd for software installs that needs to run from within a directory. Pushd will map the drive for you (since it's running from a network share) and popd will disconnect it.

For ex:

pushd \\server\share
Installer.exe -parameters

Answered 04/03/2014 by: jegolf
Red Belt

Please log in to comment