How to copy files to a Network share

(imported topic written by ricschce91)

I am trying to copy a file from a local hard drive to a network drive. I tried the following statements:

dos copy c:\temp\test.txt “\server03\c$\test.txt”

dos copy “c:\temp\test.txt” “\server03\c$\test.txt”

The first one, it says the action was completed after executing the fixlet. However the file is not copied in the network drive.

The second one never finishes.

Is there anything I’m missing? Any tricks?

Please advice.

Ricardo S.

(imported comment written by SystemAdmin)

The BES agent runs as a system account, so when it tries to talk to the server it won’t have credentials to access the share. And it looks like you are trying to access the Admin shares which would require a priveledged account.

You’d need to either set up a Null session share or build a batch file / script with credentials in it. I would not recommend the script for security reasons.

See notes here:

http://support.bigfix.com/bes/misc/null_session_share.html

And various posts here:

http://forum.bigfix.com/viewtopic.php?id=2922

http://forum.bigfix.com/viewtopic.php?id=2085

http://forum.bigfix.com/viewtopic.php?id=1850

1 Like

(imported comment written by ricschce91)

I followed this link

http://support.bigfix.com/bes/misc/null … share.html

and it worked.

Thanks.