code: def info():
      '''
      Return information about the license, if the license is not
      correctly activated this will return None.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' license.info
      '''
      cmd = r'cscript C:\Windows\System32\slmgr.vbs /dli'
      out = __salt__['cmd.run'](cmd)
  
      match = re.search(r'Name: (.*)\r\nDescription: (.*)\r\nPartial Product Key: (.*)\r\nLicense Status: (.*)', out,
                        re.MULTILINE)
  
      if match is not None:
          groups = match.groups()
          return {
              'name': groups[0],
              'description': groups[1],
              'partial_key': groups[2],
              'licensed': 'Licensed' in groups[3]
          }
  
      return Nonf info():
      '''
      Return information about the license, if the license is not
      correctly activated this will return None.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' license.info
      '''
      cmd = r'cscript C:\Windows\System32\slmgr.vbs /dli'
      out = __salt__['cmd.run'](cmd)
  
      match = re.search(r'Name: (.*)\r\nDescription: (.*)\r\nPartial Product Key: (.*)\r\nLicense Status: (.*)', out,
                        re.MULTILINE)
  
      if match is not None:
          groups = match.groups()
          return {
              'name': groups[0],
              'description': groups[1],
              'partial_key': groups[2],
              'licensed': 'Licensed' in groups[3]
          }
  
      return None
docs: Return information about the license, if the license is not
      correctly activated this will return None.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' license.info