/build/static/layout/Breadcrumb_cap_w.png

Post install task to copy files to a local folder in the target machine

Here again your favorite Random Dude.


Today's topic is to provide an example for people that would like to have files copied over to a target machine so they can be used later (manual install maybe?).


1. We need to copy the needed files into a folder inside of the clientdrop SMB of the appliance. ( \\sda\clientdrop\test)

Z

2. We go to the user interface of the SDA > Library > Choose action > "Add BAT Script..."

9k=

3. We assign a name to the task and enter the following text to the BAT Script box

Z


Code so you can edit:

net use z: \\10.1.0.20\clientdrop\test /user:admin Password

timeout /t 3 /nobreak

Z:

xcopy /y Z: C:\Users\Public\Desktop


4. Hit save
5. Add the post-install task to your deployment

This way everytime we deploy that MSI or any other file that we need is going to be copied to the machine for later use. I hope that this article makes your deployments a bit easier and a lot faster.


See you in my next post!


Comments

  • A much better way to accomplish this would be to create an application post-install task that uses a script to copy the files. Place the script and the files in a zip file and upload that to the task. Then, enter the name of the script in the Full Command Line. - chucksteel 11 months ago
    • Why is it better to use the application post-install task instead of the BAT script task?
      Is the zip file containing the password more secure? How is the zip more secure? - Eberfinn 11 months ago
      • You don't need a password stored to mount the network drive, so, yes, it is more secure. The appliance will copy the contents of the zip file to the machine during the installation of Windows and then the script will run later to copy the files to their destination. - chucksteel 11 months ago
  • Another option, since you are using the shares on the SDA, is to use PETEMP (hidden share) instead. PETEMP is automatically mounted as the T: drive when you are in the KBE, so you could put the files into T:\Test, and then as a MID-Level task do "xcopy /y T:\Test C:\Users\Public\Desktop." No passwords needed and easy to swap out the files in PETEMP when they change. - andrew_lubchansky 6 months ago
This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ