Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to be able to transfer a file to a remote windows box, OS of windows vista or higher. I am transferring this file from one windows machine to another windows machine. The target machine isn't guaranteed to have SSH, or anything, but I have its login credentials. Are there any ways to do this?

share|improve this question

migrated from stackoverflow.com Oct 10 '12 at 7:04

This question came from our site for professional and enthusiast programmers.

1 Answer 1

If you have valid credentials, you can try

net use \\other.machine.com\C$ /u:DOMAIN\USER /PERSISTENT:YES

where:

other.machine.com - is the machine you're going to connect to
DOMAIN - domain name
USER - user name
C$ - disk 'C' on the machine (if you have administrator's rights) or any another share you're legal to connect to

It will ask you for the password then.

If connection was successful, you can then mount this share as a network disk. Then you can just do 'copy' from command line on that disk.

Sure, it is not guaranteed this will work - that machine can be behind a firewall or there may not be shared any resources. But anyway you can try. I think, it is simplest way to do what you want without installing any additional applications.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.