Copying file across domains using scripting
Posted on 2006-06-20
I have a file that I want to copy from one Windows 2000 server in one domain to another Windows 2000 server in another domain using scripting.
I run the following script on the server.
' VBScript source code
set objFSO = CreateObject("scripting.fileSystemObject")
WScript.Echo("beginning copy of tech request database now...")
WScript.Echo("copy of tech request database finished.")
I get a permissions denied error code 800A0046. I think I am getting this message because I am going across domains.
Is there some way I could provide authentication of username, password, and domain name in my script? Or is there another way to approach this?
Please be gentle as I am new to scripting!