Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

PowerShell/WmiNamespaceSecurityDsc

Repository files navigation

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

  • [String] Path (Key): No description yet.
  • [String] Principal (Key): No description yet.
  • [String] AccessType (Key): No description yet.
  • [String] Ensure (Write): Specifies if the availability group should be present or absent. Default is Present. { Present | Absent }
  • [String[]] Permission (Write): No description yet. { Enable | MethodExecute | FullWrite | PartialWrite | ProviderWrite | RemoteAccess | Subscribe | Publish | ReadSecurity | WriteSecurity }
  • [String] AppliesTo (Write): No description yet. Default is 'Self'. { Self | Children }

Read-Only Properties from Get-TargetResource

  • [Boolean] Inherited (Read): No description yet.

Examples

About

This module contains DSC resources to manage WMI Namespace Security.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published