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?

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?

A.
Service1

B.
Configuration1

C.
Start DscConfiguration

D.
Test-DscConfigu ration



Leave a Reply 8

Your email address will not be published. Required fields are marked *

four × five =


Jay

Jay

B. Configuration1

Bod

Bod

Question asks to confirm configuration (or test) answer is D

https://technet.microsoft.com/en-us/library/dn407382.aspx

Andy

Andy

Bod, you are not right. It’s the purpose of configuration to confirm that service is running…

Tom

Tom

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

Not to confirm anything, but what to run first.

Zuba

Zuba

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.

retro

retro

Answer is

B.
Configuration1

Server1 needs to be added as a node for the file to apply.