What I am looking to do seems fairly simple but I cant figure it out. I am looking to run a Powershell script to launch an RDP session, copy a file to the c:\ directory, then run that file from a command line. I would like it to loop, getting the paramaters froma csv file, such as server IP, username, and password. So in essence the steps would be as follows...
- import infor from the csv file to define variables
- copy specefied file (then loop)
- launch mstsc.exe
- enter server IP, username, password
- paste copied file into the c:\ directory
- launch cmd.exe
- Run the file that was copied to the c:\ directory
- log off server
I wanted to see if someone could help me out with this.I am new to power shell and have been able to work through a lot of it. If someone could point me in the right direction, or even provide me the code to fill in the blanks, I would greatly appreaciate it.