Forge Home

dism

Provides a DISM puppet resource type on Windows.

741,463 downloads

60,718 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.3.1 (latest)
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.2.1
  • 0.2.0
  • 0.1.0
released Nov 1st 2018
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 3.4.0 < 7.0.0

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-dism', '1.3.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-dism
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-dism --version 1.3.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/dism — version 1.3.1 Nov 1st 2018

dism

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with dism
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

##Overview The dism module enables and disables Windows Features using the DISM utility provided by Microsoft

##Module Description

This module provides a dism puppet resource type on Windows. Windows Deployment Image Servicing and Management (DISM.exe) is used to enable or disable Windows features on Windows 7 SP1, Windows 8, Windows Server 2008 R2, Windows Server 2012, Windows 2012 R2

Enable or Disable Windows Features What is DISM?

##Setup

###What dism affects dism will modify the existing features on the system, whether enabling or disabling. In some instances the server will be restarted unless explicity setting the parameter norestart to true

###Setup Requirements The module requires that dism be installed on your system, in most cases this will be there by default. In some cases, such as Windows 7 it requires SP1 or to be manually installed.

##Usage ###To enable DotNet3 and all child settings

dism { 'NetFx3':
  ensure => present,
  all    => true,
  source => 'Z:\2012r2\sxs'
}

###To install IIS and provide an answer file for all setup steps

dism { 'IIS-WebServer':
  ensure => present,
  answer => 'C:\answer\iis.xml',
}

###To disable Internet Explorer and prevent restart

dism { 'Internet-Explorer-Optional-amd64':
  ensure    => absent,
  norestart => true,
}

##Reference

###Types

dism

  • ensure: Ensures that the feature is enabled or disabled. Valid values are 'present' or 'absent'.
  • name: The name of the feature you would like to modify. This defaults to the title being passed
  • all: Whether to install all child features. Defaults to false
  • answer: The answer file that you would like to pass to dism.exe to provide any answers.
  • norestart: Whether to explicitly tell the provider to NOT restart. Defaults to false.
  • exitcodes: Acceptable exit codes. Defaults to [0, 3010]
  • source: Filepath to the source files needed for installing the feature.
  • limitaccess: Prevent DISM from contacting WU for repair of online images. Defaults to false