GithubHelp home page GithubHelp logo

dscresource.template's Introduction

DscResource.Template

The DscResource.Template module contains a template with example code and best practices for DSC resource modules in DSC Resource Kit.

NOTE! This is not meant to be a fully functioning resource module. The resource in this repository is just to make sure common code works, and used as a practical example.

This project has adopted this code of conduct.

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 see our contributing guidelines.

Installation

GitHub

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

PowerShell Gallery

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

Find-Module -Name DscResource.Template -Repository PSGallery | Install-Module

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

Get-DscResource -Module DscResource.Template

Requirements

The minimum Windows Management Framework (PowerShell) version required is 4.0 or higher.

Examples

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

Change log

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

Resources

  • Folder example resource to manage a folder on Windows.
  • {Resource2 One line description of resource 1}

Folder

Example resource to manage a folder on Windows.

Requirements

  • Target machine must be running Windows Server 2008 R2 or later.

Parameters

  • [String] Path (Key): The path to the folder to create.
  • [Boolean] ReadOnly (Required): If the files in the folder should be read only.
  • [Boolean] Hidden (Write): If the folder should be hidden. Default value is $false.
  • [String] Ensure (Write): Specifies the desired state of the folder. When set to 'Present', the folder will be created. When set to 'Absent', the folder will be removed. Default value is 'Present'.

Read-Only Properties from Get-TargetResource

  • [Boolean] Shared (Write): If sharing is be enabled or disabled.
  • [String] ShareName (Read): The name of the shared resource.

Examples

Known issues

All issues are not listed here, see here for all open issues.

{ResourceName}

{ Detailed description of ResourceName. }

Requirements

{ Please include any requirements for running this resource (e.g. Must run on Windows Server OS, must have Exchange already installed). }

  • Target machine must be running Windows Server 2008 R2 or later.

Parameters

  • {[String] Property1 (Key): Description of ResourceName property 1}
  • {[Boolean] Property2 (Required): Description of ResourceName property 2}

Read-Only Properties from Get-TargetResource

  • {[Boolean] Property3 (Write): Description of ResourceName property 2}

Examples

  • { Add links to the examples for the resource ResourceName }

Known issues

All issues are not listed here, see here for all open issues.

dscresource.template's People

Contributors

johlju avatar plagueho avatar stevel-msft avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.