Jump to content

Recommended Posts

Sandro Alves
Posted

Hi,

 

i know i can use script to run on computer.

 

I did a test using a BAT that has the command to copy the share directory (UNC) to the computer's C:\.

 

But I run the task it says it did, but the directory didn't appear.

 

what am I doing wrong?

 

Thanks. 

Posted

Hi Sandro,

I think you are referring to building an installation package based on a .bat file and running this as an installation task to the target devices?

I understand that the .bat file is a command to copy files from a UNC path to the C:\ of target device correct?

If so, please keep in mind the installation task will execute under the “System” account and it will copy the script locally to the C:\Windows\Temp directory and execute it there. Please be sure that the .bat file will execute properly under those conditions. 

Posted

From my experience, the started bat cannot access smb shares since it cannot authenticate to the smb server (since it is running as local SYSTEM account), maybe a share which is accessible by everyone might help.

However, you can upload the data, which should be copied, into the installation package and copy it (locally) to the right destination (KSC copies the whole installation package folder to the destination computer anyway).

Guest
This topic is now closed to further replies.


×
×
  • Create New...