PrepAway - Latest Free Exam Questions & Answers

What should you run first?

You have a server named Server1 that runs Windows Server 2012 R2.
You plan to use Windows PowerShell Desired State Configuration (DSC) to confirm that the
Application Identity service is running on all file servers.
You define the following configuration in the Windows PowerShell Integrated Scripting
Environment (ISE):

You need to use DSC to configure Server1 as defined in the configuration.
What should you run first?

PrepAway - Latest Free Exam Questions & Answers

A.
Service1

B.
Configuration1

C.
Start DscConfiguration

D.
Test-DscConfigu ration

8 Comments on “What should you run first?

  1. Zuba says:

    In Windows PowerShell 4.0, DSC provides a new scripting model that enables administrators
    to create modules called configurations, which consist of nodes representing computers
    and resources that define elements that administrators want to define as part of the configuration
    for a particular node.
    For example, a relatively simple script to deploy a Web server might appear as follows:
    Configuration CompanyWeb
    {
    Node “ServerB”
    {
    WindowsFeature InstallIIS
    {
    Ensure = “Present”
    Name = “Web-Server”
    }
    File CopyWebSite
    {
    Ensure = “Present”
    Type = “Directory“
    Recurse = $true
    SourcePath = $WebsitePath
    DestinationPath = “C:\inetpub\wwwroot”
    Requires = “[WindowsFeature]InstallIIS”
    }
    }
    }
    In this script, the Node block identifies the computer to be configured and the
    WindowsFeature and File blocks are both built-in resources that you can use to define the
    configuration you want to deploy. The WindowsFeature block specifies that the configuration
    must install the Web-Server role, and the File block copies the content files for a website
    to the node from a location defined by the $WebsitePath variable. DSC includes many other
    built-in resources that you can use to define more complex configuration elements, such as
    system services, registry settings, environment variables, and user and group accounts. It is
    also possible for administrators to create their own custom resources.

    Once you have created a configuration script, you can deploy it by executing the defined
    configuration name—in this case CompanyWeb—from a Windows PowerShell prompt.




    1



    0

Leave a Reply