PowerShell / WmiNamespaceSecurityDsc

This module contains DSC resources to manage WMI Namespace Security.
MIT License
21 stars 14 forks source link
dsc dsc-resources

WmiNamespaceSecurityDsc

This module contains DSC resources to manage WMI Namespace Security.

This project has adopted this code of conduct.

This is a reworking of enabling management of WMI Namespace Security using PowerShell.

Steve Lee originally created some scripts almost 6 years ago. Read his articles Scripting WMI Namespace Security (part 1 of 3), Scripting WMI Namespace Security (part 2 of 3), Scripting WMI Namespace Security (part 3 of 3). He thought it would be a good opportunity to enable a simpler model for managing WMI Namespace Security using DSC (Desired State Configuration). This also provided an opportunity to leverage the new PowerShell Classes.

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

Please check out common DSC Resources contributing guidelines.

Installation

To manually install the module, download the source code and unzip the contents to the '$env:ProgramFiles\WindowsPowerShell\Modules' folder

To install from the PowerShell gallery using PowerShellGet (in PowerShell 5.0) run the following command:

Find-Module -Name WmiNamespaceSecurityDsc -Repository PSGallery | Install-Module

To confirm installation, run the below command and ensure you see the SQL Server DSC resources available:

Get-DscResource -Module WmiNamespaceSecurityDsc

Requirements

The minimum Windows Management Framework (PowerShell) version required is 5.0 or higher, which ships with Windows 10 or Windows Server 2016, but can also be installed on Windows 7 SP1, Windows 8.1, Windows Server 2008 R2 SP1, Windows Server 2012 and Windows Server 2012 R2.

Examples

You can review the Examples directory in the WmiNamespaceSecurityDsc repository for some general use scenarios for all of the resources that are in the resource module.

Change log

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

Resources

WmiNamespaceSecurity

This resource is used to create, remove, and update an Always On Availability Group. It will also manage the Availability Group replica on the specified node.

Parameters

Read-Only Properties from Get-TargetResource

Examples