

- #Windows powershell desired state configuration install
- #Windows powershell desired state configuration archive
- #Windows powershell desired state configuration windows 8.1
- #Windows powershell desired state configuration windows 7
- #Windows powershell desired state configuration windows
The following table explains the annotations in the figure. We need this folder to exist at C:\Scripts on our member server named adfs1, and we want to prevent it from being deleted.įigure 4 shows my configuration script named EnforceScripts.ps1. Let's say that we have a file share located at \\dc1\psscripts and it contains all our team's key PowerShell scripts. Eventually we'll see text-based and graphical front-ends that run on any OS that allows DSC configuration authoring.
#Windows powershell desired state configuration windows
MOF is the same easy-to-read data description format used by Windows Management Instrumentation (WMI) and the Common Information Model (CIM).Īlthough the standard way to define a DSC configuration right now is to work from within PowerShell, using the Configuration container, that situation will change. One of the coolest things about Direct State Configuration is that Microsoft chose to use the industry-standard Managed Object Format (MOF) instead of something proprietary or otherwise unwieldy. Keep the module folders intact, as shown in Figure 1.įigure 3 Contents of the.

Unpack the DSC module folders to the following location on each DSC node: C:\Program Files\WindowsPowerShell\Modules
#Windows powershell desired state configuration archive
Given the high degree of flux DSC is in at the moment, I suggest that you download all the DSC modules as a single ZIP archive from the Microsoft TechNet Script Center. Important Notes About DSC ResourcesĮventually you'll find, download, install, and manage DSC modules directly from within Windows PowerShell v5 by using the PowerShellGet and PackageManagement (formerly called OneGet) modules. In fact, let's delve more deeply into resources right now. This denotes "experimental," and means that these are likely not the resource's final names. Notice the lowercase x that prepends each DSC module/resource name. You might also employ the xDHCPServer module and its constituent resources to ensure that your DHCP Server role never changes without explicit override. For example, you might use the resources within the xActiveDirectory DSC module to configure and enforce the domain controller role. Specifically, a DSC module contains one or more resources that provide targeted configuration management. Next, in Windows Server activate the DSC components by executing the following PowerShell "one liner" from an elevated PowerShell session: Install-WindowsFeature -Name DSC-Serviceįinally, download the appropriate DSC resources to all computers that will participate in DSC configuration.ĭSC resources are building blocks that we can use to build DSC configuration scripts.
#Windows powershell desired state configuration install
NET Framework 4.5 package in addition to hotfix KB2883200 before you install WMF 4.0.
#Windows powershell desired state configuration windows 7
To allow Windows Server 2008 R2 and Windows 7 boxes to participate in DSC, you first need to install WMF 4.0 on those systems.įor Windows 7, be sure to install the full.
#Windows powershell desired state configuration windows 8.1
Windows Server 2012 and Windows 8.1 both include Windows Management Framework (WMF) 4.0. Let's start by examining DSC system requirements. By the end of this article, you will understand the overall DSC architecture and be better prepared to integrate DSC into your existing configuration-management structure. Is DSC supposed to replace Group Policy–based configuration management? Not exactly. If your experience mirrors mine, another administrator will remove a component or tweak a setting, and you'll only learn about it after the server stops working and your help desk explodes with support tickets.Īlthough we can theoretically use DSC to configure Windows client systems, Microsoft really intended DSC as a method for applying consistency and standardization to servers. DSC is a configuration management framework that uses vendor-neutral standards and enables you to prevent "configuration drift" on Windows Server, Linux, and eventually OS X server computers.Ĭonfiguration drift has historically been a big problem among Windows systems administrators. Windows PowerShell v4 and v5 include a feature that you really need to know about, called Desired State Configuration (DSC).

Windows PowerShell in 24 Hours, Sams Teach Yourself
