community.windows.win_computer_description (2.2.0) — module

Set windows description, owner and organization

Authors: RusoSova (@RusoSova)

Install collection

Install with ansible-galaxy collection install community.windows:==2.2.0


Add to requirements.yml

  collections:
    - name: community.windows
      version: 2.2.0

Description

This module sets Windows description that is shown under My Computer properties. Module also sets Windows license owner and organization. License information can be viewed by running winver commad.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set Windows description, owner and organization
  community.windows.win_computer_description:
   description: Best Box
   owner: RusoSova
   organization: MyOrg
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set Windows description only
  community.windows.win_computer_description:
   description: This is my Windows machine
  register: result
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Set organization and clear owner field
  community.windows.win_computer_description:
   owner: ''
   organization: Black Mesa
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Clear organization, description and owner
  community.windows.win_computer_description:
   organization: ""
   owner: ""
   description: ""
  register: result

Inputs

    
owner:
    description:
    - String value of the persona that the Windows is licensed to. Specify value of ""
      to clear the value.
    required: false
    type: str

description:
    description:
    - String value to apply to Windows descripton. Specify value of "" to clear the value.
    required: false
    type: str

organization:
    description:
    - String value of organization that the Windows is licensed to. Specify value of ""
      to clear the value.
    required: false
    type: str