Book Image

Learning PowerShell DSC

By : James Pogran
Book Image

Learning PowerShell DSC

By: James Pogran

Overview of this book

Table of Contents (14 chapters)
Learning PowerShell DSC
About the Author
About the Reviewers

Setting up a common installation base

With all your target machines up and configured for remote access, you move on to looking at what your common base installation should look like. Since you've been doing this stuff manually by yourself for a long while, you know by heart what needs to be installed on every server and configured.

Looking back at this book as you go, you jump right into making a DSC configuration for your base setup. Since the custom software your company develops uses Roman names for code names for releases, you decide to name your configuration Pantheon and author the following DSC configuration script:

Configuration PantheonDeployment
  Import-DscResource -Module xRemoteDesktopAdmin
  Import-DscResource -Module xTimeZone
  Import-DscResource -Module xComputerManagement
  Import-DscResource -Module xSystemSecurity

  Node ($AllNodes).NodeName
      ConfigurationId      = $Node.ConfigurationId
      RefreshMode          = $Node...