Writing a powershell script to copy files with certain extension from one folder to another
- by the_drow
I would like to write a powershell script that gets the following parameters as input:
Folder to copy from, extensions allows, folder to copy to and a boolean indicating if the change should restart IIS, username and password.
What cmdlets should I be looking at considering that I am copying to a remote server?
How do I read the parameters into variables?
How do I restart IIS?
Cosidering that I might want to copy multiple folders, how do I write a powershell script that invokes a powershell script?