O'Reilly logo

Getting Started with Nano Server by Charbel Nemnom

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Push DSC configuration

Before we push the DSC configuration and set the firewall rules, the first step is to create a configuration file known as an MOF file. We generate the MOF file by using a Windows PowerShell script. The second step in the configuration process is to use the MOF file to configure the target Nano Server.

In an instance where you want to use DSC to enable built-in firewall rules onto the Nano Server, the first thing you will have to do is to write a PowerShell script that will create the required MOF file. Such a script might look as shown following:

# Variables$TargetNode='NANOVM-OM01','NANOVM-OM02','NANOVM-OM03','NANOVM-OM04','NANOVM-OM05'ConfigurationxFirewallClient{        # Importing the xNetworking DSC Module Import-DscResource-ModuleNamexNetworking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required