Hello..
I would like to have assistance from Powershell gurus..
My scenario is; I want to automate a task to copy some .dll files from one location to multiple servers but before copying those files over to those servers; I'd like to take a backup for those same files which will be overwritten on to a local server where these .dll files will be copied from
My preference would be that the script should read 1 file (.txt or .csv) which will contain the name of those files that need to be copied over and get backedup and then read another file which will contain the list of servers.
example
File to copy = filename.dll (this filename.dll should be read from a .txt or .csv file which could contain more than 1 file)
Server to copy to = server1, server2, server3 (this should be read from a .csv file)
From the local server; Read filename(s).dll from the file, the servername from the server file and before copying the new files over, copy those exact same files from the shared folders on those servers and paste them on the local server by creating a folder as the servername and paste the file in there.
Then copy the new files over to those servers from the list and overwrite the existing files.
I really appreciate your time and effort in this
Thanks