XCOPY not working in KACE script works in Command prompt.
I have been tryin to copy 3 files to 3 different paths. The command lines I have written all work in a command prompt. When I copy them to KACE and run the script, the command prompt pops ups on the client screen but the files do not copy to thier destination.
The three lines of script I have are:
start /wait xcopy \\(SERVERNAME)\library\software\scripts\Registry.pol c:\Windows\System32\GroupPolicy\Machine\ /E /C /I /Q /G /H /R /K /Y /Z /J
start /wait xcopy \\(SERVERNAME)\library\software\scripts\gpt.ini c:\Windows\System32\GroupPolicy\ /E /C /I /Q /G /H /R /K /Y /Z /J
start /wait xcopy \\SERVERNAME)\library\software\scripts\loudprint1-PC-printers.vbs c:\Windows\System32\GroupPolicy\Machine\Scripts\Startup\ /E /C /I /Q /G /H /R /K /Y /Z /J
I have in the script the three files as dependencies and have also tried running the directly from the kbot folder.
I have tried putting the three lines in a bat file and executing the bat file.
I have tried incasing the individual locations in quotes: start /wait xcopy "\\(SERVERNAME)\library\software\scripts\Registry.pol" "c:\Windows\System32\GroupPolicy\Machine\ /E /C /I /Q /G /H /R /K /Y /Z /J"
This is something that cannot be pushed out via Group Policy from AD. This application is only used in select rooms and the users can login at other location that we don't want the policy in effect.
These are all Windows 7 systems.
I know I am missing something so if someone can let me know what it is I would greatly appreate it.
PS one more thing... would like to eventually get this to run silent.
Community Chosen Answer
Create a zip with the 3 files, an install.bat, and a vbs file to hide the bat running. Upload the zip as a dependency.
use this to run the kscript