Want to Create a script to copy a file to a directory using the K1000
So I have a OSX file i am trying to deploy to a file directory on several hundred computers and i am trying to use the K1000 scripting to do the job but i just cant seem to get the file to copy correctly. I need to Copy a OSX i loaded on the Kace and copy it to the \\computer name\c$\WINDOWS\system32 directory and I am having trouble figuring out how to use the scripting section on Kace so if anyone could provide me with assistance i would much appricate it.
-
Are you using the SYSTEM account to authenticate? - nheyne 10 years ago
Answers (3)
Here is an example of a Offline kScript that copies a single file (lic file) to a specific directory on a MAC.
Note that for scripting with MACs, using the Offline kscript you do not need to use escape characters; e.g. you don't need to type in /Library/Application\ Support/... rather you can just use /Library/Application Support/....
the PC version looks like this:
Comments:
-
The Verify step might be occurring before the file finishes copying to the local machine. Try having it verify something else. - mpace 10 years ago
-
Also, if you leave the Verify step blank it automatically assumes a success in the scripting logic. You don't technically need it... - mpace 10 years ago
-
I think I found your error, you don't verify that the zip file exists but rather you verify the extracted file within your zip file exists. - Jbr32 10 years ago
-
I tried Mpaces idea of just removing the verify steps completely and still no go - aaronb09 10 years ago
-
Are you ziping up a folder called MSINET or the files themselves? What is the error message? - Jbr32 10 years ago
-
the zipped folder is called MSINET.ZIP and it contains 1 file called msinet.ocx and I don't get an error message when run the script the Dell Kace says it completed no errors but nothing shows up in the directory I specified. - aaronb09 10 years ago
-
ok so I have tried to get a file into the system32 directory on windows 7 and no dice. So I started to look into it and found this http://www.itninja.com/question/can-t-copy-a-file-to-system32-on-windows-7 and then I found this http://social.technet.microsoft.com/Forums/windowsserver/en-US/252d6744-e167-4459-8bef-82d010301bd3/trustedinstaller-group so it may not be possible to get a file into system32 without messing with the trusted installer group.
Does the file have to go into system32 or can it go somewhere else? - Jbr32 10 years ago-
Damn. Yeah the file needs to go into the system32 directory we are trying to stream line some in house software upgrades. - aaronb09 10 years ago