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
B. Configuration1
1
0
Question asks to confirm configuration (or test) answer is D
https://technet.microsoft.com/en-us/library/dn407382.aspx
0
0
Bod, you are not right. It’s the purpose of configuration to confirm that service is running…
0
0
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.
0
0
My vote is for C.
https://technet.microsoft.com/en-us/library/dn521623(v=wps.630).aspx
A. and B. are labels for definitions in a configuration that has not been applied yet (and are not executable by themselves).
D. is used to verify that a configuration matches.
https://technet.microsoft.com/en-us/library/dn407382(v=wps.630).aspx
0
2
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
It’s B.
B. makes the needed mof file from the configuration definition.
C. will be the next step and applies the created mof file
http://blogs.technet.com/b/privatecloud/archive/2013/08/30/introducing-powershell-desired-state-configuration-dsc.aspx
1
0
Answer is
B.
Configuration1
Server1 needs to be added as a node for the file to apply.
1
0