How can I connect to other computers on my home network -specifically through the command prompt or Powershell? The accounts on these computers have passwords. However, I have access to those accounts and passwords.
I need to know in order to create a Powershell script to backup other computers onto a NAS drive or onto an external drive attached to my own PC?
I have tried all of the following from within the command prompt and they have not worked:
- \\JacksPC\Users\Jack user:Jack Jackspassword
- \\JacksPC\Users\Jack\ user:Jack Jackspassword
- \\JacksPC\Users\Jack /user:Jack Jackspassword
- PSExec \\JacksPC\Users\Jack -u Jack -p Jackspassword -i dir
Essentially, I am seeking to send my credentials across the network, but from within cmd or Powershell. I ultimately wish to manage files and folders. So essentially, I am looking to be able to execute the equivalent of the 'cd', 'dir' and 'copy' commands but over the network and against another computer on my network which is password protected.
I do not wish to map the remote computer to a drive.