Uploading IIS 10.0 websites to Nano Server
In this recipe, we are going to upload web pages to v5mysite.com
. We will also create the index.htm
and v5mysite.htm
files with PowerShell commands.
Getting ready
To step through this recipe, you will need a Nano Server 2016 instance with the IIS package installed. For all this installation and configuration work, you should have administrative privileges.
How to do it...
- Log in to Windows Server 2016. The IP of Windows Server 2016 is
172.16.15.60
and the name of the server isWIN2016IIS
. Press Windows + R on your keyboard. You will get theRun
window. We have to open PowerShell ISE with administrative rights, so type in the Run command windowRunAs /user:Administrator PowerShell_ISE.exe
and pressOK
.
- Now it will ask you the administrator password for your Windows Server 2016 instance (not Nano Server). Type the administrator password and press Enter. You will get the PowerShell window.
- Now we have to remote connect to Nano Server 2016 with the IP
172...