none
Specifying multiple names in a windows feature using DSC RRS feed

  • Question

  • Hi,

    I'm playing around with Desired State Configuration and had a (simple?) question around it. 

    All the example I have seen so far demonstrate on how to install IIS using DSC - well and good. Now, I want to install not just the web server but also the Management tools, how can I specify multiple name parameters in the same config block?

    What I have is this:

        Node $NodeName
        {
            WindowsFeature IIS
            {
                Ensure = "Present"
                Name = "Web-Server"
            }
        }

    What I would like is to specify the "Web-Mgmt-Tools" as part of the Name parameter, but it doesn't allow duplicate parameters. How can I specify a list of names? Is it possible to do a foreach loop in the WindowsFeature block?

    Iv'e tried using Name = "Web Server,Web-Mgmt-Tools" but I get an error about the name not being recognised

    Thanks in advance


    • Edited by kmittal82 Sunday, February 9, 2014 5:30 PM
    Sunday, February 9, 2014 5:14 PM

Answers

All replies