SYNOPSIS
member
member
DESCRIPTION
member changes the membership list for a user or group.
When the
Options
-a -
adds each specified user or group that is not part of the
-u user or-g group options. -d -
deletes each specified user or group that is not part of the
-u user or-g group options. -D domain-name-
locates the primary domain controller of domain-name, and requests that machine to perform the actions on behalf of the member command. member normally performs actions on the local system.
The
-D and-S options are mutually exclusive. -e -
displays the error number contained in the errno variable for any system error that occurs and exits. You can use the strerror utility to display the system error message corresponding to this error number.
-g group-
selects a group. The list of specified users are added or deleted from this group's user list.
-G -
treats all group names given as global groups. This is the default.
-L -
treats all group names given as local groups.
-S hostname-
specifies the host machine that the member command requests to perform actions on its behalf. member normally performs actions on the local system. Optionally, hostname may be preceded by \\ or //.
The
-D and-S options are mutually exclusive. -u user-
selects a user. The list of specified groups are added or deleted from this user's group membership.
For a more complete description of group membership, and an explanation of local groups versus global groups, see your 8.1/2012R2/10/2016/2019/11/2022 administrative documentation.
EXAMPLES
For an example of member usage, see the userinfo reference page.
The following code might be used to remove user Sandy from the Accounting and Development groups:
member -S '\\MyServer' -G -u Sandy -d Accounting Development
DIAGNOSTICS
Possible exit status values are:
PORTABILITY
Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
AVAILABILITY
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.