File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/win_useradd.cpython-310.pyc
Back
o ;j:| � @ s� d Z ddlZddlZddlZddlZddlmZ ddlZddlZddl Zddl ZddlZddlZddl ZddlmZ e�e�Zz(ddlZddlZddlZddlZddlZddlZddlZddlZddlZdZW n eyr dZY nw dZdd � Z d0d d�Z d1dd �Z!d2dd�Z"dd� Z#dd� Z$dd� Z%dd� Z&dd� Z'dd� Z(dd� Z)dd� Z*d3d d!�Z+d"d#� Z,d$d%� Z-d&d'� Z.d4d(d)�Z/d*d+� Z0d,d-� Z1d4d.d/�Z2dS )5a6 Module for managing Windows Users. .. important:: If you feel that Salt should be using this module to manage users on a minion, and it is using a different module (or gives an error similar to *'user.info' is not available*), see :ref:`here <module-provider-override>`. :depends: - pywintypes - win32api - win32con - win32net - win32netcon - win32profile - win32security - win32ts - wmi .. note:: This currently only works with local user accounts, not domain accounts � N)�datetime)�CommandExecutionErrorTF�userc C s t jj�� sdS tsdS tS )z. Requires Windows and Windows Modules )Fz Module win_useradd: Windows Only)Fz)Module win_useradd: Missing Win32 Modules)�salt�utils�platformZ is_windows�HAS_WIN32NET_MODS�__virtualname__� r r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/win_useradd.py�__virtual__= s r c C s i } | rt | �| d<