Forge Home

wmi

A defined type for managing Windows WMI Objects.

18,463 downloads

18,463 latest version

4.1 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

  • 0.1.0 (latest)
released Sep 23rd 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'souldo-wmi', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add souldo-wmi
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install souldo-wmi --version 0.1.0

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

souldo/wmi — version 0.1.0 Sep 23rd 2014

wmi

Overview

This module is a defined type to manage WMI objects on Windows. It has been tested on Windows Server 2012 R2.

Module Description

This is a fairly simple type to set the values for WMI objects so you don't have to fight Puppet DSL wrapping up PowerShell with all the right syntax.

Usage

To use the wmi type, you must specify as least the namespace, class, property and value (as shown below). You can also specify a value for wmi_method if it does not follow the default syntax of prefixing the property with set.

wmi { 'Remote Desktop - Network Level Authentication' :
  wmi_namespace => 'root/cimv2/terminalservices',
  wmi_class     => 'Win32_TSGeneralSetting',
  wmi_property  => 'UserAuthenticationRequired',
  wmi_value     => 1,
}

wmi { 'Remote Desktop - Allow Connections' : wmi_namespace => 'root/cimv2/terminalservices', wmi_class => 'Win32_TerminalServiceSetting', wmi_property => 'AllowTSConnections', wmi_value => 1 }