- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 07:03 PM
I'm trying to copy files from the local C drive where my lansweeer is sitting to a c drive on a remote computer/
I'm using the following command:
copy /Y c:\or\redemption.dll c:\or\
"or" is the name of the folder where the file is in the server
I'd like it to copy to a folder called "or" in the C drive of whatever computer I'm choosing from the list. The OR folder on the destination computer does not exist so I need Lansweeper to create it for me.
I keep getting "incorrect function" when I run it. I'm using the system account who is also our domain admin
Thoughts?
- Labels:
-
General Discussion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2017 02:03 PM
If the command works locally on a client computer in CMD (referring to your package share though), it should work using the deployment module.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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.
You saved my sanity. From the future, I thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 11:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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!
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 😕
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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 😕
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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!
Checked again at a few guides, in a test script, try changing "FSO.CopyFile" to "FSO.CopyFolder"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 10:04 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎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!
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2016 09:12 PM
I ended up finding a VB script that so far has worked really well.
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