Microsoft_Press_ebook_Introducing_Windows_Server_2012_R2_PDF.pdf

This is great but what if you do not have

This preview shows page 190 - 191 out of 242 pages.

This is great, but what if you do not have Configuration Manager in your environment? There are many scenarios where you have the need for monitoring and remediation but Configuration Manager 2012 is not an available option. Fortunately a solution exists! Windows PowerShell 4.0 now includes Desired State Configuration (DSC). DSC is a new management platform that consists of a suite of language extensions and providers in the form of Windows PowerShell cmdlets along with a host service that is capable of providing the ability to retrieve a configuration, test a configuration, and apply a configuration to a single or set of systems. Web server example For this example, you manage a commerce application where the front-end web servers reside in a DMZ or provider cloud. The consistent configuration state of the front-end web servers is key to having a healthy system. Let’s face it; the transactions executed on the servers directly impact your company revenue. The health and functionality of the servers have a lot of impact on your company brand. To monitor and maintain the state of the servers, you implement DSC. As the following diagram shows, DSC has four main pieces: 1. Configuration Instance Document The Windows PowerShell script that generates the definition of the desired state. 2. MOF file The Managed Object Format (MOF) file that contains the compiled definition of the desired state. 3. Local Configuration Manager The DSC engine on the client system that executes against the MOF to retrieve the current configuration, compare the current configuration to the MOF, and/or apply the settings defined in the MOF. 4. Desired State Configuration Pull Server (optional) The repository for the definition of the desired state. If clients are configured to execute a PULL instead of receiving a PUSH, the DSC Pull Server hosts the configuration and client data required to remediate.
Image of page 190

Subscribe to view the full document.

Windows PowerShell Desired State Configuration CHAPTER 10 179 To begin, you need to ensure Windows PowerShell Remoting is enabled on all involved systems (Enable-PSRemoting). I highly recommend leveraging group policy to put this in place. Group policy has been helping IT professionals enforce policy for more than a decade. It is a perfect complement to your DSC implementation. NOTE In addition to requiring PSRemoting, DSC applies only to x64 bit system with Windows PowerShell 4.0. Next, generate the Configuration Instance Document. This Windows PowerShell script contains the definition and execution order of what should exist on the target machine. In this example, your front-end web server requires IIS installed, a set of files (content), an application installed (setup file such as an MSI) as well as specific registry keys. The Configuration Instance Document is a script that contains a configuration block of code. That configuration block contains: Node(s) A specific target system; defined as “localhost”; or any targeted node system (defined in a hash table).
Image of page 191
You've reached the end of this preview.
  • Spring '16

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern