'How to Create IIS Website using designated template

#Script template
function createIISWebsite($siteName,$sitePath,$siteUrl) {
#write your script here
return ...
}

I tried to solve it but still cant find proper answer because i need to follow the template can someone help?

▪ Sample input: siteName: test local sitePath: "D:\Test" siteUrl: test.localhost ▪ Sample output: if success = " successfully created, you can access it via "

if site name already exist = " already exist, updated the site path to and you can access it via " if problem happen = "Error: Error message"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source