Microsoft announces PowerShell v4, DSC

Yesterday at TechEd North America, Jeffrey Snover and Kenneth Hansen began describing features to be delivered with PowerShell v4 in Windows Server 2012 R2 (the company has not yet announced availability dates for either).

In particular, a new feature called Desired State Configuration promises to become the foundation for some pretty serious expansion. Essentially, DSC lets administrators write a declarative “script” that describes what a computer should look like. PowerShell takes that, matches the declarative components with underlying modules, and ensures that the computer does, in fact, look like that. Nearly anything can be checked and controlled: roles, features, files, registry keys – anything, in fact, that a PowerShell module can do.

The architecture includes the notion of centrally stored declarative scripts, and the ability to dynamically deploy supporting modules on an as-needed basis to computers that are checking themselves. A System Center Virtual Machine Manager demonstration utilized the feature to dynamically spin up brand-new VM instances and have them immediately reconfigure to their desired state.

At first glance, it’s easy to see “more Microsoft stuff” in this feature. After all, the company has previous given us Dynamic Systems Management (DSM), various universal “configuration languages,” and even System Center Configuration Manager’s somewhat primitive configuration auditing feature. But keep in mind that DSC will be a core part of the OS. That means product teams and ISVs can rely on it being there, with no other dependencies to worry about. DSC is also built around DMTF standards – like the MOF format – making it natively suitable for cross-platform management. A demo from Opscode using their Chef product showed clever use of the new DSC feature.

Hansen also mentioned that PowerShell modules will be deployable through DSC as ZIP files, helping make them more self-contained (not entirely unlike PECL packages in the Unix world).

There has been no announcement as yet on how far back PowerShell v4 will be made available, nor whether or not DSC is a PowerShell feature or a Windows Server 2012 R2 feature. If it is indeed a PowerShell feature (which I suspect it is), then it’ll be available on any system with v4 installed. That will hopefully include at least Windows 7, Windows Server 2008 R2, and later.

About Don Jones

Don Jones is a Windows PowerShell MVP, author of several Windows PowerShell books (and other IT books), Co-founder and President/CEO of, PowerShell columnist for Microsoft TechNet Magazine, PowerShell educator, and designer/author of several Windows PowerShell courses (including Microsoft's). Power to the shell!

12 thoughts on “Microsoft announces PowerShell v4, DSC

  1. Pingback: Анонсирован PowerShell v4.0 -

  2. Pingback: Thoughts from Microsoft TechEd North America | Splunk Blogs

  3. Pingback: Summary of 2nd Dutch PowerShell User Group – DuPSUG meeting with additional resources |

  4. Superdoc

    The innovation of DSC is definitely going help those who deploy VM’s often to meet their product’s server pre-requisites

  5. Rob Cannon

    I really hope DSC is made available on earlier versions of Windows Server. My enterprise is slow to “approve” new server operating systems (we still can’t use 2012).

    1. DonJ Post author

      Even if it is, remember there’s two bits to it. DSC, the base technology, may become available on older versions (I wouldn’t expect anything older than 2008R2, though). But DSC requires underlying “resources” in order to “touch” anything; those “resources” may well only be available on latest-version products. You could always write your own “resources” of course, but it’s important to understand the distinction between a feature of PowerShell and a feature of the OS, and how they interrelate.

  6. Pingback: Up Next: Don Jones talks about PowerShell V4 Desired State Configuration | PowerScripting Podcast

  7. Pingback: [PowerShell] Getting started with Windows PowerShell Desired State Configuration – Part 1 | Daniel's Cloud Endeavour

  8. Pingback: Configuration Management Week: DSC |

Comments are closed.