If you fail, then read the article again don’t give up. “It’s failure that gives you the proper perspective on success.” - Ellen DeGeneres

Index

C01

You are viewing the result for challenge C01

Challenge

Challenge: C01 Write a dsc configuration named Europa that will always set your local machine computer description to: This is my automation machine.. The resource you will use, when found, give it a descriptive name of EuropaDescription.


Details

  • Name of the configuration (Europa)
  • Name of the module containing the resource to be used (ComputerManagementDsc)
  • Name of the target Node ($env:COMPUTERNAME)
  • Name of the Resource (Computer)
  • Name of the Resource description (EuropaDescription)
  • Name of the Resource properties we need (Name, Description)


Configuration

your config should look like something like this

Configuration Europa
{
    Import-DscResource -Module ComputerManagementDsc
    Node $env:COMPUTERNAME
    {
        Computer EuropaDescription
        {
            Name        = "$env:COMPUTERNAME"
            Description = "This is my automation machine."
        }
    }
}

Note: Applying this DSC Config might reboot your machine. *