The Microsoft Hyper-V Server standalone product doesn't contain an implementation of Desired
State Configuration so you can't manage it using PowerShell DSC or Azure Automation State
Configuration.
Installing DSC
PowerShell Desired State Configuration is included in Windows and updated through Windows Management
Framework. The latest version is Windows Management Framework 5.1.
Note
You don't need to enable the Windows Server feature 'DSC-Service' to manage a machine using DSC.
That feature is only needed when building a Windows Pull Server instance.
Using DSC for Windows
The following sections explain how to create and run DSC configurations on Windows computers.
Creating a configuration MOF document
The Windows PowerShell Configuration keyword is used to create a configuration. The following
steps describe the creation of a configuration document using Windows PowerShell.
Install a module containing DSC resources
Windows PowerShell Desired State Configuration includes built-in modules containing DSC resources.
You can also load modules from external sources such as the PowerShell Gallery, using the
PowerShellGet cmdlets.
PowerShell
Install-Module'PSDscResources' -Verbose
Define a configuration and generate the configuration document:
To allow DSC to run, Windows needs to be configured to receive PowerShell remote commands even
when you're running a localhost configuration. To configure your environment correctly, just
Set-WsManQuickConfig -Force in an elevated PowerShell Terminal.
You can apply Configuration documents (MOF files) to a machine with the
Start-DscConfiguration cmdlet.
Windows PowerShell Desired State Configuration log files
Logs for DSC are written to the Microsoft-Windows-Dsc/Operational Windows Event Log. You can
enable other logs for debugging purposes by following the steps in Where Are DSC Event Logs.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
DSC feedback
DSC is an open source project. Select a link to provide feedback:
As a Windows Server hybrid administrator, you integrate Windows Server environments with Azure services and manage Windows Server in on-premises networks.