How to write PowerShell code part 2 (Using function)
- by ybbest
In the last post, I have showed you how to use external configuration file in your PowerShell script. In this post, I will show you how to create PowerShell function and call external PowerShell script.You can download the script here.
1. In the original script, I create the site directly using New-SPSite command. I will refactor it so that I will…