PSDesiredStateConfiguration

PSDesiredStateConfiguration 模块支持 PowerShell Desired State Configuration (PSDSC)。 此模块的每个主要版本都支持不同的用例:

  • v1.1 仅适用于 Windows PowerShell。 可以使用它调用 PSDSC 资源并创作和应用 PSDSC 配置。
  • v2 仅支持 PowerShell。 可以使用它调用 PSDSC 资源并编译 PSDSC 配置。 它旨在支持 Azure 计算机配置。
  • v3(预览版)仅支持 PowerShell。 可以使用它调用 PSDSC 资源。 它旨在用于使用 Azure 计算机配置在 Linux 计算机上调用 PSDSC 资源。

Microsoft Desired State Configuration (DSC)使你能够通过两个适配器管理 PSDSC 资源:

  • 通过 Microsoft.Windows/WindowsPowerShell 适配器,可以在 Windows PowerShell 中使用 PSDesiredStateConfiguration 版本 1.1 调用任何 PSDSC 资源。
  • 通过 Microsoft.DSC/PowerShell 适配器,可以在 PowerShell 中调用任何基于类的 PSDSC 资源。 它不依赖于 PSDesiredStateConfiguration 模块。

PSDesiredStateConfiguration

Get-DscResource

Gets Desired State Configuration (DSC) resources present on the computer.

Invoke-DscResource

Runs a method of a specified PowerShell Desired State Configuration (DSC) resource.

New-DscCheckSum

Creates checksum files for DSC documents and DSC resources.