PowerShell / PSDscResources

MIT License
129 stars 54 forks source link

PSDscResources

PSDscResources is the new home of the in-box resources from PSDesiredStateConfiguration. The resources in this module are maintained and supported by Microsoft.

These resources are a combination of those in the in-box PSDesiredStateConfiguration module as well as community contributions from our experimental xPSDesiredStateConfiguration module on GitHub. These resources have also recently been updated to meet the DSC Resource Kit High Quality Resource Module (HQRM) guidelines.

In-box resources not currently included in this module should not be affected and can still load from the in-box PSDesiredStateConfiguration module.

Because PSDscResources overwrites in-box resources, it is only available for WMF 5.1. Many of the resource updates provided here are also included in the xPSDesiredStateConfiguration module which is still compatible with WMF 4 and WMF 5 (though this module is not supported and may be removed in the future).

To update your in-box resources to the newest versions provided by PSDscResources, first install PSDscResources from the PowerShell Gallery:

Install-Module PSDscResources

Then, simply add this line to your DSC configuration:

Import-DscResource -ModuleName PSDscResources

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Branches

master

Build status codecov

This is the branch containing the latest release - no contributions should be made directly to this branch.

dev

Build status codecov

This is the development branch to which contributions should be proposed by contributors as pull requests. This development branch will periodically be merged to the master branch, and be released to PowerShell Gallery.

Contributing

This module does not accept breaking changes.

Please check out the common DSC Resources contributing guidelines.

Change log

A full list of changes in each version can be found in the change log.

Resources

Resources that Work on Nano Server

Archive

Provides a mechanism to expand an archive (.zip) file to a specific path or remove an expanded archive (.zip) file from a specific path on a target node.

Requirements

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

Environment

Provides a mechanism to configure and manage environment variables for a machine or process.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

Group

Provides a mechanism to manage local groups on a target node. This resource works on Nano Server.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

GroupSet

Provides a mechanism to configure and manage multiple Group resources with common settings but different names

Requirements

None

Parameters

The following parameters will be the same for each group in the set:

Read-Only Properties from Get-TargetResource

None

Examples

MsiPackage

Provides a mechanism to install and uninstall MSI packages.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

Examples

Registry

Provides a mechanism to manage registry keys and values on a target node.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

Script

Provides a mechanism to run PowerShell script blocks on a target node. This resource works on Nano Server.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

Examples

Service

Provides a mechanism to configure and manage Windows services on a target node. This resource works on Nano Server.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

ServiceSet

Provides a mechanism to configure and manage multiple Service resources with common settings but different names. This resource can only modify or delete existing services. It cannot create services.

Requirements

None

Parameters

The following parameters will be the same for each service in the set:

Read-Only Properties from Get-TargetResource

None

Examples

User

Provides a mechanism to manage local users on a target node. This resource works on Nano Server.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

WindowsFeature

Provides a mechanism to install or uninstall Windows roles or features on a target node. This resource is not supported on Nano Server.

Requirements

Parameters

Read-Only Properties from Get-TargetResource

Examples

WindowsFeatureSet

Provides a mechanism to configure and manage multiple WindowsFeature resources on a target node.

Requirements

Parameters

Read-Only Properties from Get-TargetResource

Examples

WindowsOptionalFeature

Provides a mechanism to enable or disable optional features on a target node. This resource works on Nano Server.

Requirements

Parameters

Read-Only Properties from Get-TargetResource

Examples

WindowsOptionalFeatureSet

Provides a mechanism to configure and manage multiple WindowsOptionalFeature resources on a target node. This resource works on Nano Server.

Requirements

Parameters

The following parameters will be the same for each Windows optional feature in the set:

Read-Only Properties from Get-TargetResource

None

Examples

WindowsPackageCab

Provides a mechanism to install or uninstall a package from a Windows cabinet (cab) file on a target node. This resource works on Nano Server.

Requirements

Parameters

Read-Only Properties from Get-TargetResource

None

Examples

WindowsProcess

Provides a mechanism to start and stop a Windows process.

Requirements

None

Parameters

Read-Only Properties from Get-TargetResource

Examples

ProcessSet

Provides a mechanism to configure and manage multiple WindowsProcess resources on a target node.

Requirements

None

Parameters

The following parameters will be the same for each process in the set:

Read-Only Properties from Get-TargetResource

Examples