We need a Powershell script that will do the following operations :
1. Create IIS Website
- To Create the website, the script should ask for the following parameters:
- Domain. This will be the only parameter defined from us. The rest will be hardcoded. (this will be used for the website name, website bindings, website path creation and also to create the dns records below.)
2. Create Primary DNS zone records
The DNS Records will be automatically created using the domain used above. Initially you will create the DNS zone for this domain and then you will define inside simply the *, www and (empty) A records.
3. Copy contents of a certain folder to the newly created folder.
The following values will be hardcoded inside the powershell script. We will edit the hardcoded values since those will be the same for all websites :
- Websites Folder Path. This will be the path where the website folder will be created. This path will be like "c:\inetpub\wwwroot". Then what you will do is to create inside this path the following folder structure :
1. Main folder with the domain name that we have used in the parameter requested initially (for example "c:\inetpub\wwwroot\domainname")
- data folder. This folder will be found in "c:\inetpub\wwwroot\domainname".
For example : "c:\inetpub\wwwroot\domainname\data". This folder will have the MODIFY permission included for the "SERVER\Users" group. so the users of the server will have write and edit permissions on this folder. Warning, NOT FULL CONTROL only Modify permissions
- wwwroot folder. The default permissions. No individual permissions needed. The path will be ("c:\inetpub\wwwroot\domainname\wwwroot")
- logs folder. this will also have "modify" permissions as the data folder and this will be the folder where all website logs will go. ( "c:\inetpub\wwwroot\domainname\logs")
2. DNS Records Will also be hardcoded, so when you create the dns zone using the domain defined initially from us, you will also add this records :
(empty) : IP
(please understand that empty means the empty/blank value. not the word empty)
* : IP
www : IP
3. Copy the folder. Here, after doing all the steps above, you should hardcode a "source folder" path and once we define the path of the folder, as the last step, you should copy ALL the contents of this folder to the website path created before ("c:\inetpub\wwwroot\domainname\wwwroot")
This script should be compatible with Powershell 3.0 and Powershell 4.0 and with Windows Server 2012, IIS 7, IIS 8 and Windows DNS Server.
You should provide at least some part of the script so we can test it out and then after we assign you the project, you have to provide the whole script. Money will be released only after we have tested the whole script.
Dear Employer,
I am a Microsoft System Administrator with over 10 years of experience working in an enterprise environment. I have a lot of experience with PowerShell, since it was in beta, until the latest versions.
I can solve your task quickly, and I will do it for FREE, because I would like to get some quality jobs done so that employers can trust me more when I am bidding.
So I guarantee you that you will receive a very professional and technically superior service regarding your powershell scripting needs, and the best part is that you will have this work done for FREE.
Hope to hear from you very soon.
Kind Regards,
Milan Banjac