- Log in to Windows Server 2016. The IP is 172.16.15.60 and the name of the server is WIN2016IIS. Press Windows + R. You will get the Run window. We have to open PowerShell ISE with administrative rights. Type RunAs /user:Administrator PowerShell_ISE.exe in the Run window and press OK.
- Now it will ask you the administrator password for your Windows Server 2016 (not Nano Server) machine. Type the password and press Enter. You will get the PowerShell window.
- Now you have to remotely connect to Nano Server 2016 using the IP 172.16.15.63. Run the following command in PowerShell:
"Enter-PSSession –ComputerName "172.16.15.63" -
Credential ~Administrator"
- Now you will get a popup window for the Nano Server administrator account password. Enter the password and press OK to log in. You'll have connected successfully.
- Now run Import-module iisAdministration in PowerShell and press Enter. This will import the IISAdministration PowerShell module.
- Run the command Get-IISSite on the remote-connected PowerShell window, as shown here:
- You can see here that we get a list of websites that we've already created in Nano Server. Let's upload the HTML web pages, which are already available.
- Go to Windows Server 2016, Open the Run window, and type the UNC path of Nano Server, \172.16.15.63c$inetpubwwwroot, and press OK. You will get the username/password window of Nano Server. Provide the username and password and press OK. Now you will get the wwwroot folder of Nano Server, as shown here:
- Inside the wwwroot folder, we have the MyApp virtual directory folder and the IISstart.htm and iisstart.png files. The iisstart files are used for NanoAspNet at http://172.16.1563:8000. Open the MyApp folder, as shown here:
- You can see in the MyApp virtual directory folder that we have a file called index.htm:
- Let's open the virtual directory on Nano Server and browse to http://172.16.15.63:8000/MyApp, as shown here:
- You can see that we get access to the virtual directory's content.