SlideShare a Scribd company logo
1 of 22
INTRODUCTION TO DESIRED
STATE CONFIGURATION
(DSC)
JEFFERY HICKS, MVP
JHICKS@JDHITSOLUTIONS.COM
WHAT IS DSC?
• Uses PowerShell syntax
• Create configuration scripts
An extension to the
PowerShell language
• Use PowerShell language and cmdlets to
create and deploy configurations
Create and manage
server configuration
files
• A local configuration manager does the
heavy lifting
Ensures servers are
always configured
the way you need
WHY DSC?
Prevent server configuration “drift”
Separate configuration from implementation
“Continuous” server deployment
Manage servers on-site or in a cloud
Leverage your existing PowerShell skills
REQUIREMENTS
Requires Windows Management Framework 4.0
• PowerShell 4.0
• CIM DSC Namespace
(RootMicrosoftWindowsDesiredStateConfiguration)
• DSC cmdlets, providers and resources
.NET Framework 4.5
Windows Server 2008 R2 SP1 and later
Windows 7 SP1 and later
REQUIREMENTS
Verify KB2883200 for Windows 8.1 and Windows Server 2012
R2
PowerShell remoting must be enabled
Optional: Public Key Infrastructure for SSL and encryption
certificates
DSC ARCHITECTURE
• Configurations deployed to servers
• Use Start-DSCConfiguration to deploy
Push Model
• Servers poll a central server
• HTTP/HTTPS
• SMB
• Use traditional fault tolerance and load balancing
Pull Model
DSC PHASES
• Can include imperative and
declarative commands
• Create MOF definitions
Authoring Phase
• Declarative MOFs staged
• Configuration calculated per
node
Staging Phase
• Declarative configurations
implemented through imperative
providers
“Make It So” Phase
MANAGING CONFIGURATIONS
One configuration (i.e. one
MOF) per server
Managed by Local
Configuration Manager (LCM)
Think modular and plan ahead
Implement the pull model to
simplify management
LOCAL CONFIGURATION MANAGER
Use Get-DSCLocalConfigurationManager to check node settings
• ConfigurationMode
• ApplyOnly
• ApplyAndMonitor
• ApplyAndAutoCorrect
• RefreshMode
• Push
• Pull
• RefreshFrequencyMins (15min when using Pull)
• ConfigurationModeFrequencyMins (30min)
Set with a configuration
CREATING A CONFIGURATION
Defined in a PowerShell script
Configuration keyword (new command type)
Define Node
Configure resources
DSC RESOURCES
Managed element you define in your configuration
Core resources shipped “out of the box”
Additional “experimental” resources shipped from Microsoft
Community developed resources
You can write your own
DSC RESOURCES – OUT OF THE BOX
Provider Description
Archive Unpacks archive (.zip) files at specific paths on target nodes.
Environment Manages system environment variables on target nodes.
File Manages files and directories on target nodes.
Group Manages local groups on target nodes.
Log Logs configuration messages.
Package
Installs and manages packages, such as Windows Installer and setup.exe
packages, on target nodes.
Registry Manages registry keys and values on target nodes.
Script Runs Windows PowerShell script blocks on target nodes.
Service Manages services on target nodes.
User Manages local user accounts on target nodes.
Windows Feature Adds or removes Windows features and roles on target nodes.
Windows Process Configures Windows processes on target nodes.
Possible Resource settings Possible Resource values
Configuration key word
Desired config for nodes
Install a Windows feature
Configure a service
Create a directory
DEPLOYING A CONFIGURATION
Defines a configuration
called ‘ChicagoCore’
Configuration has hard
code node names
Configuration pushed to
every defined node
GET DSC CONFIGURATION
Get last applied configuration
• Gets objects for each type of resource
• Use Where-Object to filter for a specific resource or
setting
• Use Where-Object to filter on multiple computers
GET DSC CONFIGURATION
PS C:> Get-DSCConfiguration –cimsession CHI-FP02
PS C:> (Get-DSCConfiguration –cimsession
$all).where({$_.cimclass –match "service"}) | Select
PSComputername, Name,StartupType,State
TEST AND RESET A CONFIGURATION
Desired state
maintained by
local
configuration
manager
Test for
configuration
compliance
Force
reconfiguration
Or push new
configurations
Pull model ensures servers have desired configuration
TEST CONFIGURATION
Test-DSCConfiguration returns True or False
Recommend testing one server at a time
Use –verbose to see details
PS C:> Test-DSCConfiguration –cimsession CHI-
FP02
RESOURCES
• The DSC Book
• free ebook at http://powershell.org/wp/ebooks
• PowerShell in Depth: An Administrator’s Guide 2nd Edition
• http://bit.ly/PSinDepth2
• DSC Resources on GitHub
• https://github.com/powershellorg/dsc
• PowerShell Team blog
• http://blogs.msdn.com/b/powershell/
• Pluralsight training videos
• http://www.pluralsight.com
SUMMARY
DSC requires PowerShell 4.0
DSC leverages your existing PowerShell
skills
DSC will become the “norm” for server
configuration
Define a server configuration and know
that it will always be that way
THANK YOU
http://jdhitsolutions.com/blog
jhicks@jdhitsolutions.com
@JeffHicks
http://plus.google.com/+JefferyHicks

More Related Content

What's hot

7- How to Configure Disk Quota
7- How to Configure Disk Quota7- How to Configure Disk Quota
7- How to Configure Disk QuotaFahad Al-Balushi
 
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanMicrosoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanDavid J Rosenthal
 
Apache web server
Apache web serverApache web server
Apache web serverSabiha M
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEMRoshan Kumar
 
VMware Overview
VMware OverviewVMware Overview
VMware OverviewMadhu Bala
 
Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)Eric Sloof
 
HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview hemantnaik
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systemssanjoysanyal
 
The View - Lotusscript coding best practices
The View - Lotusscript coding best practicesThe View - Lotusscript coding best practices
The View - Lotusscript coding best practicesBill Buchan
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linuxVarnnit Jain
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshootingOvi Chis
 
IBM Lotus Domino Domain Monitoring (DDM)
IBM Lotus Domino Domain Monitoring (DDM)IBM Lotus Domino Domain Monitoring (DDM)
IBM Lotus Domino Domain Monitoring (DDM)Austin Chang
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRavi Kumar
 
dynamic host configuration protocol
dynamic host configuration protocoldynamic host configuration protocol
dynamic host configuration protocolkinish kumar
 

What's hot (20)

7- How to Configure Disk Quota
7- How to Configure Disk Quota7- How to Configure Disk Quota
7- How to Configure Disk Quota
 
Windows 2019
Windows 2019Windows 2019
Windows 2019
 
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by AtidanMicrosoft Windows Server 2012 R2 Overview - Presented by Atidan
Microsoft Windows Server 2012 R2 Overview - Presented by Atidan
 
Active Directory
Active Directory Active Directory
Active Directory
 
Apache web server
Apache web serverApache web server
Apache web server
 
Dns server
Dns serverDns server
Dns server
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
IIS
IISIIS
IIS
 
NETWORK FILE SYSTEM
NETWORK FILE SYSTEMNETWORK FILE SYSTEM
NETWORK FILE SYSTEM
 
VMware Overview
VMware OverviewVMware Overview
VMware Overview
 
Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)Introduction - vSphere 5 High Availability (HA)
Introduction - vSphere 5 High Availability (HA)
 
HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview HCL Domino V12 Key Security Features Overview
HCL Domino V12 Key Security Features Overview
 
Topic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information SystemsTopic1 Understanding Distributed Information Systems
Topic1 Understanding Distributed Information Systems
 
The View - Lotusscript coding best practices
The View - Lotusscript coding best practicesThe View - Lotusscript coding best practices
The View - Lotusscript coding best practices
 
Networking in linux
Networking in linuxNetworking in linux
Networking in linux
 
Esxi troubleshooting
Esxi troubleshootingEsxi troubleshooting
Esxi troubleshooting
 
IBM Lotus Domino Domain Monitoring (DDM)
IBM Lotus Domino Domain Monitoring (DDM)IBM Lotus Domino Domain Monitoring (DDM)
IBM Lotus Domino Domain Monitoring (DDM)
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech Arkit
 
dynamic host configuration protocol
dynamic host configuration protocoldynamic host configuration protocol
dynamic host configuration protocol
 
DHCP
DHCPDHCP
DHCP
 

Viewers also liked

PowerShell v4 Desired State Configuration
PowerShell v4 Desired State ConfigurationPowerShell v4 Desired State Configuration
PowerShell v4 Desired State ConfigurationJason Stangroome
 
Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...
Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...
Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...Chef
 
10 PowerShell Mistakes, Trips and Traps
10 PowerShell Mistakes, Trips and Traps10 PowerShell Mistakes, Trips and Traps
10 PowerShell Mistakes, Trips and TrapsJeffery Hicks
 
Venture Capital - An Introduction
Venture Capital - An IntroductionVenture Capital - An Introduction
Venture Capital - An IntroductionJanis Zech
 
Tribal Nova Docker workshop
Tribal Nova Docker workshopTribal Nova Docker workshop
Tribal Nova Docker workshopNicolas Degardin
 
Docker - Containervirtualisierung leichtgemacht
Docker - Containervirtualisierung leichtgemachtDocker - Containervirtualisierung leichtgemacht
Docker - Containervirtualisierung leichtgemachtB1 Systems GmbH
 
Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker vishnu rao
 
Managing enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingManaging enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingConcentrated Technology
 
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionBasic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionRob Dunn
 
Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secretChris Conte
 
PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functionsmikepfeiffer
 

Viewers also liked (20)

PowerShell v4 Desired State Configuration
PowerShell v4 Desired State ConfigurationPowerShell v4 Desired State Configuration
PowerShell v4 Desired State Configuration
 
Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...
Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...
Windows PowerShell Desired State Configuration (DSC) for Veteran Chefs - Chef...
 
10 PowerShell Mistakes, Trips and Traps
10 PowerShell Mistakes, Trips and Traps10 PowerShell Mistakes, Trips and Traps
10 PowerShell Mistakes, Trips and Traps
 
Venture Capital - An Introduction
Venture Capital - An IntroductionVenture Capital - An Introduction
Venture Capital - An Introduction
 
Tribal Nova Docker workshop
Tribal Nova Docker workshopTribal Nova Docker workshop
Tribal Nova Docker workshop
 
ABCs of docker
ABCs of dockerABCs of docker
ABCs of docker
 
Docker - Containervirtualisierung leichtgemacht
Docker - Containervirtualisierung leichtgemachtDocker - Containervirtualisierung leichtgemacht
Docker - Containervirtualisierung leichtgemacht
 
Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker Visualising Basic Concepts of Docker
Visualising Basic Concepts of Docker
 
Managing enterprise with PowerShell remoting
Managing enterprise with PowerShell remotingManaging enterprise with PowerShell remoting
Managing enterprise with PowerShell remoting
 
PowerShell crashcourse
PowerShell crashcoursePowerShell crashcourse
PowerShell crashcourse
 
Best free tools for w d a
Best free tools for w d aBest free tools for w d a
Best free tools for w d a
 
Managing SQLserver
Managing SQLserverManaging SQLserver
Managing SQLserver
 
Basic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 sessionBasic PowerShell Toolmaking - Spiceworld 2016 session
Basic PowerShell Toolmaking - Spiceworld 2016 session
 
Ive got a powershell secret
Ive got a powershell secretIve got a powershell secret
Ive got a powershell secret
 
PowerShell Functions
PowerShell FunctionsPowerShell Functions
PowerShell Functions
 
PowerShell custom properties
PowerShell custom propertiesPowerShell custom properties
PowerShell custom properties
 
Automating ad with powershell
Automating ad with powershellAutomating ad with powershell
Automating ad with powershell
 
Ha & drs gotcha's
Ha & drs gotcha'sHa & drs gotcha's
Ha & drs gotcha's
 
Server Core2
Server Core2Server Core2
Server Core2
 
PowerShell crashcourse for sharepoint
PowerShell crashcourse for sharepointPowerShell crashcourse for sharepoint
PowerShell crashcourse for sharepoint
 

Similar to Introduction to Desired State Configuration (DSC)

Configuration management comes to Windows
Configuration management comes to WindowsConfiguration management comes to Windows
Configuration management comes to WindowsRavikanth Chaganti
 
Desired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc indiaDesired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc indiaRavikanth Chaganti
 
Jan Egil Ring - Get started with windows power shell desired state configuration
Jan Egil Ring - Get started with windows power shell desired state configurationJan Egil Ring - Get started with windows power shell desired state configuration
Jan Egil Ring - Get started with windows power shell desired state configurationNordic Infrastructure Conference
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaDr. John Tunnicliffe
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaDr. John Tunnicliffe
 
Tech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxTech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxRalph Attard
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopersBryan Cafferky
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET PlatformAlex Thissen
 
Best Practice SharePoint Architecture
Best Practice SharePoint ArchitectureBest Practice SharePoint Architecture
Best Practice SharePoint ArchitectureMichael Noel
 
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...Amazon Web Services
 
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...European Collaboration Summit
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementSharkrit JOBBO
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf
 
Codeigniter Training Part3
Codeigniter Training Part3Codeigniter Training Part3
Codeigniter Training Part3Weerayut Hongsa
 
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...ITCamp
 
Ex300 objectives
Ex300   objectivesEx300   objectives
Ex300 objectivesjorg_marq
 

Similar to Introduction to Desired State Configuration (DSC) (20)

Configuration management comes to Windows
Configuration management comes to WindowsConfiguration management comes to Windows
Configuration management comes to Windows
 
Desired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc indiaDesired state-configuration-ravikanth-august-2013-vtc india
Desired state-configuration-ravikanth-august-2013-vtc india
 
Jan Egil Ring - Get started with windows power shell desired state configuration
Jan Egil Ring - Get started with windows power shell desired state configurationJan Egil Ring - Get started with windows power shell desired state configuration
Jan Egil Ring - Get started with windows power shell desired state configuration
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
 
Cl212
Cl212Cl212
Cl212
 
Tech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxTech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on Linux
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET Platform
 
Best Practice SharePoint Architecture
Best Practice SharePoint ArchitectureBest Practice SharePoint Architecture
Best Practice SharePoint Architecture
 
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
AWS re:Invent 2016: Deploying and Managing .NET Pipelines and Microsoft Workl...
 
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
ECS19 - Nik Charlebois - Automate the Deployment & Monitoring of SharePoint w...
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
eCAP Developer Walkthru
eCAP Developer WalkthrueCAP Developer Walkthru
eCAP Developer Walkthru
 
Pvs slide
Pvs slidePvs slide
Pvs slide
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
 
Codeigniter Training Part3
Codeigniter Training Part3Codeigniter Training Part3
Codeigniter Training Part3
 
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
Building and Managing your Virtual Datacenter using PowerShell DSC - Florin L...
 
Ex300 objectives
Ex300   objectivesEx300   objectives
Ex300 objectives
 

Recently uploaded

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

Introduction to Desired State Configuration (DSC)

  • 1. INTRODUCTION TO DESIRED STATE CONFIGURATION (DSC) JEFFERY HICKS, MVP JHICKS@JDHITSOLUTIONS.COM
  • 2. WHAT IS DSC? • Uses PowerShell syntax • Create configuration scripts An extension to the PowerShell language • Use PowerShell language and cmdlets to create and deploy configurations Create and manage server configuration files • A local configuration manager does the heavy lifting Ensures servers are always configured the way you need
  • 3. WHY DSC? Prevent server configuration “drift” Separate configuration from implementation “Continuous” server deployment Manage servers on-site or in a cloud Leverage your existing PowerShell skills
  • 4. REQUIREMENTS Requires Windows Management Framework 4.0 • PowerShell 4.0 • CIM DSC Namespace (RootMicrosoftWindowsDesiredStateConfiguration) • DSC cmdlets, providers and resources .NET Framework 4.5 Windows Server 2008 R2 SP1 and later Windows 7 SP1 and later
  • 5. REQUIREMENTS Verify KB2883200 for Windows 8.1 and Windows Server 2012 R2 PowerShell remoting must be enabled Optional: Public Key Infrastructure for SSL and encryption certificates
  • 6. DSC ARCHITECTURE • Configurations deployed to servers • Use Start-DSCConfiguration to deploy Push Model • Servers poll a central server • HTTP/HTTPS • SMB • Use traditional fault tolerance and load balancing Pull Model
  • 7. DSC PHASES • Can include imperative and declarative commands • Create MOF definitions Authoring Phase • Declarative MOFs staged • Configuration calculated per node Staging Phase • Declarative configurations implemented through imperative providers “Make It So” Phase
  • 8. MANAGING CONFIGURATIONS One configuration (i.e. one MOF) per server Managed by Local Configuration Manager (LCM) Think modular and plan ahead Implement the pull model to simplify management
  • 9. LOCAL CONFIGURATION MANAGER Use Get-DSCLocalConfigurationManager to check node settings • ConfigurationMode • ApplyOnly • ApplyAndMonitor • ApplyAndAutoCorrect • RefreshMode • Push • Pull • RefreshFrequencyMins (15min when using Pull) • ConfigurationModeFrequencyMins (30min) Set with a configuration
  • 10. CREATING A CONFIGURATION Defined in a PowerShell script Configuration keyword (new command type) Define Node Configure resources
  • 11. DSC RESOURCES Managed element you define in your configuration Core resources shipped “out of the box” Additional “experimental” resources shipped from Microsoft Community developed resources You can write your own
  • 12. DSC RESOURCES – OUT OF THE BOX Provider Description Archive Unpacks archive (.zip) files at specific paths on target nodes. Environment Manages system environment variables on target nodes. File Manages files and directories on target nodes. Group Manages local groups on target nodes. Log Logs configuration messages. Package Installs and manages packages, such as Windows Installer and setup.exe packages, on target nodes. Registry Manages registry keys and values on target nodes. Script Runs Windows PowerShell script blocks on target nodes. Service Manages services on target nodes. User Manages local user accounts on target nodes. Windows Feature Adds or removes Windows features and roles on target nodes. Windows Process Configures Windows processes on target nodes.
  • 13. Possible Resource settings Possible Resource values
  • 14. Configuration key word Desired config for nodes Install a Windows feature Configure a service Create a directory
  • 15. DEPLOYING A CONFIGURATION Defines a configuration called ‘ChicagoCore’ Configuration has hard code node names Configuration pushed to every defined node
  • 16. GET DSC CONFIGURATION Get last applied configuration • Gets objects for each type of resource • Use Where-Object to filter for a specific resource or setting • Use Where-Object to filter on multiple computers
  • 17. GET DSC CONFIGURATION PS C:> Get-DSCConfiguration –cimsession CHI-FP02 PS C:> (Get-DSCConfiguration –cimsession $all).where({$_.cimclass –match "service"}) | Select PSComputername, Name,StartupType,State
  • 18. TEST AND RESET A CONFIGURATION Desired state maintained by local configuration manager Test for configuration compliance Force reconfiguration Or push new configurations Pull model ensures servers have desired configuration
  • 19. TEST CONFIGURATION Test-DSCConfiguration returns True or False Recommend testing one server at a time Use –verbose to see details PS C:> Test-DSCConfiguration –cimsession CHI- FP02
  • 20. RESOURCES • The DSC Book • free ebook at http://powershell.org/wp/ebooks • PowerShell in Depth: An Administrator’s Guide 2nd Edition • http://bit.ly/PSinDepth2 • DSC Resources on GitHub • https://github.com/powershellorg/dsc • PowerShell Team blog • http://blogs.msdn.com/b/powershell/ • Pluralsight training videos • http://www.pluralsight.com
  • 21. SUMMARY DSC requires PowerShell 4.0 DSC leverages your existing PowerShell skills DSC will become the “norm” for server configuration Define a server configuration and know that it will always be that way

Editor's Notes

  1. Desired State Configuration (DSC) is the last major component of the Monad Manifesto which brought us Windows PowerShell. DSC will change the way you manage your datacenter. Instead of managing a server, you will manage its configuration. DSC is known as a “make it so” technology. You will define a desired server configuration and the server will make it happen. This session will provide an overview to DSC and walk you through setting up a basic configuration.