Tool distribute via Scripts - results in path not found

atera02
atera02 Member Posts: 1

Hello guys,

i wrote a very simple batch script to start an exe with some specific install parameters. The exe is located on a network drive were everyone has access to. The network drive is mapped by our group policies on every client and server. When i start my "script" (two lines of batch code😂) on a client, then the small tool i want to install is installed correctly. But whatever i tryed in the last days whenever i start this script via Atera Scripts and run it on a client the path can't be found.

My idea to map the network drive directly via the script unfortunatly exits in error code 1219 which i guess is normal cause the drive connects automaticly and reconneting it with and admin while the normal user is still locked in dosen't work windows related.

I just want to distribute the new tool via Atera Scripts so i don't need to manuelly install it on 150 PC's.

Does anybody know why Atera can't find the path or how i can fix it?

Tagged:

Comments

  • mbudke
    mbudke Member Posts: 148 ✭✭✭

    Hey,

    try to avoid getting the install file from SMB as this has some challenges.
    Maybe download it from a trusted website like your own.

    Reason:
    When you run the script as currently logged in user then you might have access to the SMB storage but a user maybe does not have administrative privileges so the install would fail.
    When you run the script as SYSTEM then the GPO would not apply means you do not have the network drive available. To be able to access the SMB you either have to map the drive manually with specific credentials or use anonymous access which you might not want.

    When you run it as SYSTEM and download the installer from a trusted (internal) website you can avoid above issues.