I am working from Windows Server 2012 R2 from that server I am connected to a internal network, to which there are numerous computers that I have access to. What I want to do is based on a specific users IP address in that network I want to pull 3 specific files out of that computer and make a copy to a specified location on my server. The files are always located in the same file path location for each individual computer and have the same file name.
From what I understand is that I should be able to write a script to perform this.
Copy-Item -ComputerName -Path filepath -Destination filepath destination
I don't want to use the computer name as it is more convoluted to find, it would be nice to enter in the IP of the address I am pulling the 3 files from.
Or if there is an easier-quicker way to copy the files from the PowerShell environment that would also be very helpful.