‎08-08-2016 07:03 PM
‎03-03-2017 02:03 PM
‎10-21-2020 10:51 PM
Bruce.B wrote:
Do note that this command seems to return a 1 on success, so do adjust your success codes accordingly.
‎03-01-2017 11:29 PM
‎08-08-2016 10:28 PM
Thanks so much!
I guess I needed to be more clear: I have 2 DLLs I need to copy from a shared location on a fileserver to each computer's C drive (I'm planning to create a folder in the c drive called "or")
Any chance you can walk me through the copying steps?
Thanks!
‎08-08-2016 10:33 PM
zberkshier91 wrote:Thanks so much!
I guess I needed to be more clear: I have 2 DLLs I need to copy from a shared location on a fileserver to each computer's C drive (I'm planning to create a folder in the c drive called "or")
Any chance you can walk me through the copying steps?
Thanks!
Unfortunately, VB scripting isn't my thing either. The information I was able to get was from a really quick google search, but I imagine if you had all of your files included in a folder, you could include a wild card like *.dll which should move anything ending in .dll over.
Sorry I couldn't be much help from there 😕
‎08-08-2016 11:20 PM
No problem! really appreciate your help!
Anybody else can help by any chance?
Basically trying to create a deployment package to deploy 1 folder from a shared location on a fileserver to a bunch of computers.
Thanks!
‎08-08-2016 10:04 PM
‎08-08-2016 10:11 PM
zberkshier91 wrote:
Absolutely!
In this example, I'm copying down the master_preferences file for Google Chrome (alternative to GPOs) to the client workstation after the install is finished. Here's what the deployment package overview looks like
Step 1 uninstalls Chrome using the MSI uninstaller type in your package settings. Under the "Version" field, I've left blank to act as a catch all for chrome versions.
Step 2 installs the MSI for 64 bit Google Chrome silently, without rebooting or any GUIs.
Step 3 is basically a fail safe in the event that a reboot occurs after the installation (happened once) it will stop it
Step 4 finished out the package by running the VBscript on the local workstation. Here is how I've structured out the folder so the file get's copied properly
In the script example, change the destination of the file to point to wherever you have it stored on your Lansweeper server, and in the destination, you'll need to include the location. Since it sounds like you need to have that directory created, you may need to tweak with the script to include a command to make a new directory on the client PC.
My thought would probably have that be a step that runs before the script does (most likely by including a command step to make a new directory. Google how to do this via cmd)
Hope all of this helps!
‎08-08-2016 09:12 PM
Dim fso
Const OverwriteExisting = True
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "\\SERVERNAME\defaultpackageshare$\Scripts\Google files\master_preferences", "C:\Program Files (x86)\Google\Chrome\Application\master_preferences", OverwriteExisting
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now