This topic explains how to get started using PowerShell Desired State Configuration (DSC) for Windows.For general information about DSC, see Get Started with Windows PowerShell Desired State Configuration.
-->
Install Xfce desktop on Ubuntu using xubuntu-desktop. To get the actual Xubuntu experience, you can install xubuntu-desktop package that offers several applications of its own. Sudo apt install xubuntu-desktop. It will install files of size around 300 MB, an indication that there are more packages here than xfce4.
Supported Windows operation system versions
The following versions are supported:
The Microsoft Hyper-V Serverstandalone product sku doesn't contain an implementation of Desired State Configurationso it cannot be managed by PowerShell DSC or Azure Automation State Configuration.
Installing DSC
PowerShell Desired State Configuration is included in Windows and updated through Windows ManagementFramework. The latest version is Windows Management Framework 5.1.
Note
You do not 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.
Define a configuration and generate the configuration document: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 thePowerShellGet cmdlets.
Apply the configuration to the machine
Note
To allow DSC to run, Windows needs to be configured to receive PowerShell remote commandseven when you're running a
localhost configuration. To easily configure your environmentcorrectly, just run Set-WsManQuickConfig -Force in an elevated PowerShell Terminal.
Configuration documents (MOF files) can be applied to the machineusing the Start-DscConfigurationcmdlet.
Get the current state of the configuration
The Get-DscConfigurationcmdlet queries the current status of the machine and returns the current values for the configuration.
The Get-DscLocalConfigurationManagercmdlet returns the current meta-configuration applied to the machine.
Remove the current configuration from a machine
The Remove-DscConfigurationDocument
Configure settings in Local Configuration Manager
Apply a Meta Configuration MOF file to the machineusing the Set-DSCLocalConfigurationManager cmdlet.Requires the path to the Meta Configuration MOF.
Windows PowerShell Desired State Configuration log files
Logs for DSC are written to Windows Event Log in the path Microsoft-Windows-Dsc/Operational .Additional logs for debugging purposes can be enabled following the steps inWhere Are DSC Event Logs.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |