original_docstring: 
      Add a user to the minion.
  
      :param name: str
      User name
  
      :param password: str
      User's password in plain text.
  
      :param fullname: str
      The user's full name.
  
      :param description: str
      A brief description of the user account.
  
      :param groups: list
      A list of groups to add the user to.
  
      :param home: str
      The path to the user's home directory.
  
      :param homedrive: str
      The drive letter to assign to the home directory. Must be the Drive Letter
      followed by a colon. ie: U:
  
      :param profile: str
      An explicit path to a profile. Can be a UNC or a folder on the system. If
      left blank, windows uses it's default profile directory.
  
      :param logonscript: str
      Path to a login script to run when the user logs on.
  
      :return: bool
      True if successful. False is unsuccessful.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' user.add name password
      
docstring: Add a user to the minion.
docstring_tokens: Add a user to the minion .
code: def add(name,
          password=None,
          fullname=False,
          description=None,
          groups=None,
          home=None,
          homedrive=None,
          profile=None,
          logonscript=None):
      '''
      Add a user to the minion.
  
      :param name: str
      User name
  
      :param password: str
      User's password in plain text.
  
      :param fullname: str
      The user's full name.
  
      :param description: str
      A brief description of the user account.
  
      :param groups: list
      A list of groups to add the user to.
  
      :param home: str
      The path to the user's home directory.
  
      :param homedrive: str
      The drive letter to assign to the home directory. Must be the Drive Letter
      followed by a colon. ie: U:
  
      :param profile: str
      An explicit path to a profile. Can be a UNC or a folder on the system. If
      left blank, windows uses it's default profile directory.
  
      :param logonscript: str
      Path to a login script to run when the user logs on.
  
      :return: bool
      True if successful. False is unsuccessful.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' user.add name password
      '''
      user_info = {}
      if name:
          user_info['name'] = name
      else:
          return False
      user_info['password'] = password
      user_info['priv'] = win32netcon.USER_PRIV_USER
      user_info['home_dir'] = home
      user_info['comment'] = description
      user_info['flags'] = win32netcon.UF_SCRIPT
      user_info['script_path'] = logonscript
  
      try:
          win32net.NetUserAdd(None, 1, user_info)
      except win32net.error as exc:
          (number, context, message) = exc
          log.error('Failed to create user {0}'.format(name))
          log.error('nbr: {0}'.format(number))
          log.error('ctx: {0}'.format(context))
          log.error('msg: {0}'.format(message))
          return False
  
      update(name=name,
             homedrive=homedrive,
             profile=profile,
             fullname=fullname)
  
      ret = chgroups(name, groups) if groups else True
  
      return ret
code_tokens: def add ( name , password = None , fullname = False , description = None , groups = None , home = None , homedrive = None , profile = None , logonscript = None ) : user_info = { } if name : user_info [ 'name' ] = name else : return False user_info [ 'password' ] = password user_info [ 'priv' ] = win32netcon . USER_PRIV_USER user_info [ 'home_dir' ] = home user_info [ 'comment' ] = description user_info [ 'flags' ] = win32netcon . UF_SCRIPT user_info [ 'script_path' ] = logonscript try : win32net . NetUserAdd ( None , 1 , user_info ) except win32net . error as exc : ( number , context , message ) = exc log . error ( 'Failed to create user {0}' . format ( name ) ) log . error ( 'nbr: {0}' . format ( number ) ) log . error ( 'ctx: {0}' . format ( context ) ) log . error ( 'msg: {0}' . format ( message ) ) return False update ( name = name , homedrive = homedrive , profile = profile , fullname = fullname ) ret = chgroups ( name , groups ) if groups else True return ret
short_docstring: Add a user to the minion.
short_docstring_tokens: Add a user to the minion .
comment: '''
      Add a user to the minion.
  
      :param name: str
      User name
  
      :param password: str
      User's password in plain text.
  
      :param fullname: str
      The user's full name.
  
      :param description: str
      A brief description of the user account.
  
      :param groups: list
      A list of groups to add the user to.
  
      :param home: str
      The path to the user's home directory.
  
      :param homedrive: str
      The drive letter to assign to the home directory. Must be the Drive Letter
      followed by a colon. ie: U:
  
      :param profile: str
      An explicit path to a profile. Can be a UNC or a folder on the system. If
      left blank, windows uses it's default profile directory.
  
      :param logonscript: str
      Path to a login script to run when the user logs on.
  
      :return: bool
      True if successful. False is unsuccessful.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' user.add name password
      '''