Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to connect and configure IIS running on Nano

If you have not already reviewed my other articles on using IIS on Nano, then you might want to take a look at them.  Just so you know the perspective I am coming from and the context in which I work within.

  • What’s new in IIS 10
  • How to list Packages available when creating a Nano server
  • How to install IIS and Tracing on a Nano for Windows Server 2016
  • How to copy files or deploy code to a Nano Server
  • How to connect and configure IIS running on Nano
  • IIS on Nano server
  • ASP.NET Core with IIS on Nano Server
  • Microsoft IIS Administration on Nano Server –> important for manage.iis.net, working on that one too

After you have created the Nano Server and boot it up, you will get to a console that looks something like that shown in Figure 1.

Figure 1, how to configure IIS on a Nano server

You use the credentials which were used to create the VHD to login.  This approach only allows you to set some Network, Firewall, WinRM, etc.… configurations, see Figure 2.  Nano does not have any console or GUI to perform any configuration.  All of it must be done remotely using, for example PowerShell.  You do need to login and get the IP address because it is needed to configure any remote management tool.

Figure 2, how to configure access the Nano server, Nano Server Recovery Console

Initially, when I tried to connect with PowerShell using the Enter-PSSession cmdlet I received an error stating:

Enter-PSSession : Connecting to remote server 10.###.###.202 failed with the following error message : The WinRM client cannot process the request. Default
authentication may be used with an IP address under the following conditions: the transport is HTTPS or the destination is in the TrustedHosts list, and explicit
credentials are provided. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. For more information
on how to set TrustedHosts run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic.

To resolve the issue I execute the folllowing command, also shown in Figure 3.

winrm set winrm/config/client '@{TrustedHosts="*******"}'

Figure 3, The WinRM client cannot process the request

Once I ran the above command, I execute the Enter-PSSession cmdlet again, and as shown in Figure 4, I was prompted and able to login.

Enter-PSSession -ComputerName 10.###.###.202 -Credential ######

Figure 4, Remote manage IIS on Nano, remote connect to Nano

Once you have made the remote connection, you can execute some IISAdministration PowerShell cmdlets and install/view some additional IIS features.  See Figure 5.

Figure 5, Configure Iis Running on Nano server

You can use any of the IISAdministration cmdlets to administer IIS on Nano, as shown in Figure 6.

Figure 6, configure IIS running on Nano server using IISAdministration

Examples and more information about the IISAdministration module can be found here.

Share the post

How to connect and configure IIS running on Nano

×

Subscribe to Msdn Blogs | Get The Latest Information, Insights, Announcements, And News From Microsoft Experts And Developers In The Msdn Blogs.

Get updates delivered right to your inbox!

Thank you for your subscription

×