Board index » Visual Studio » Remote copy

Remote copy

Visual Studio171
Hi!



I'm trying to wrote a few scripts which would:

1. Copy some files from local to remote server temporary directory.

2. Copy those files locally on this remote server.

3. Copy those files from this remote server to another workstations

temporary directories.

4. Copy those files locally on those workstations.



The problem is that:

1. I copy the files to remote server.

2. From central server I run, using

"Set Process = GetObject(strWinMgt).Get("Win32_Process")

Process.Create()"

a vbs script which reads an ini file, creates required bat files and then

runs them.

3. One of above bat files copies files locally and it works fine but second

is supposed to copy files to workstations. But it does not :(



And my question is in what account context these files are copied? User who

runs the script on central server? Remote server local system account?

Remote server computer account?



Regards

Silmar


-
 

Re:Remote copy

Quote
...

And my question is in what account context these files are copied?

User who runs the script on central server? Remote server local

system account? Remote server computer account?





Creating/running remote processes runs processes in the impersonated account

context of the launching user account. Impersonated account contexts do not

have access to other remote machine resources (such as UNC paths)...





--

Michael Harris

Microsoft.MVP.Scripting

Sammamish WA US



-