wmi

A defined type for managing Windows WMI Objects.

Matthew Stone

souldo

12,165 downloads

12,165 latest version

4.1 quality score

Version information

  • 0.1.0 (latest)
released Sep 23rd 2014

Start using this module

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 }