gotoh / xDismFeature

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build status

xDismFeature

The xDismFeature module is a part of the Windows PowerShell Desired State Configuration (DSC) Resource Kit, which is a collection of DSC Resources produced by the PowerShell Team. This module enables or disables Windows optional features that specifically need to be handled by DISM.exe. The xDismFeature module contains a single resource, xDismFeature.

Description

The **xDismFeature ** module contains the xDismFeature DSC Resource. This DSC module enables the install and uninstall of features that require the use of DISM.EXE

Resources

xDismFeatureConsoleSetup

  • Ensure: An enumerated value (Present, Absent) to indicate if the feature is or is not installed.

  • Name: KEY - The name of the feature to be installed.

Versions

1.0.0

  • Initial release with the following resources
    • xDismFeature

Examples

Enable the Single Instance Storage feature on Windows Server

    Configuration SIS-Limited
    {
        Import-DscResource -Module xDismFeature
        Node 'NodeName'
        {
            Ensure = 'Present'
            Name = 'SIS-Limited'
        }

    }
    
    Configuration SIS-Limited 
    { 
        Import-DscResource -Module xDismFeature 
     
        Node 'NodeName' 
        { 
            Ensure = 'Present' 
            Name = 'SIS-Limited' 
        } 
    }

Disable the Single Instance Storage feature on Windows Server.

    
Configuration SIS-Limited
{
    Import-DscResource -Module xDismFeature
    Node 'NodeName'
    {
        Ensure = 'Absent'
        Name = 'SIS-Limited'
    }
}

Configuration SIS-Limited 
{ 
    Import-DscResource -Module xDismFeature 

    Node 'NodeName' 
    { 
        Ensure = 'Absent' 
        Name = 'SIS-Limited' 
    } 
}

Contributing

Please check out common DSC Resources contributing guidelines.

About

License:MIT License


Languages

Language:PowerShell 100.0%