Creating an IIS 10.0 virtual directory on Nano Server
In this recipe, we will create a website named NanoAspnet
. We will create a virtual directory inside the website called NanoAspnet
. We will then remotely connect to Nano Server using PowerShell and manage IIS using the IISAdministrator
module and Nano Server.
Getting ready
To step through this recipe, you will need a Windows Server 2016 virtual or physical server for remote PowerShell management and creating the virtual directory on Nano Server 2016. For all this installation and configuration work, you should have administrative privileges.
How to do it...
- Log in to Windows Server 2016. The IP is
172.16.15.60
and the name of the server isWIN2016IIS
. Press Windows + R. You will get theRun
window. Open PowerShell ISE with administrative rights, typeRunAs /user:Administrator PowerShell_ISE.exe
, and pressOK
. - Now it will ask you the administrator password for your Windows Server 2016 (not Nano Server) machine. Type it and press Enter. You...