Work with NWS User Enrollment (WRKNWSENR)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Network Server User Enrollment (WRKNWSENR) command works with a list of user profiles.

The information displayed differs depending on the value of the SVRTYPE parameter.

  1. If SVRTYPE(*NWSA) is specified, the display shown depends on the value specified for the DFTSVRTYPE parameter in the network server attributes (CHGNWSA command). The DFTSVRTYPE values that are supported are *WINDOWS, *WINDOWSNT.
  2. If SVRTYPE(*NWSUSRA) is specified, the display shown depends on the value specified for the DFTSVRTYPE parameter in the network server user attributes (CHGNWSUSRA command) for the current user. The value in the network server user attributes that are valid for this command are *WINDOWS, *WINDOWSNT.
  3. If SVRTYPE(*WINDOWS) or (*WINDOWSNT) is specified, enrollment information is shown for i5/OS users enrolled into Windows domains and local servers.

Specific options are available to work with individual profiles in the list. These options provide functions such as changing user profiles and changing network server user attributes.

Top

Parameters

Keyword Description Choices Notes
USRPRF User profile Generic name, name, *ALL Optional, Positional 1
PRFTYPE Profile type *USER, *GROUP Optional, Positional 2
SVRTYPE Server type *NWSUSRA, *WINDOWS, *NWSA, *WINDOWSNT Optional, Positional 3
SERVER Server Character value, *ALL, *NWSA, *NONE Optional
DOMAIN Domain Character value, *ALL, *NWSA, *NONE Optional
Top

User profile (USRPRF)

Specifies the name of a profile.

*ALL
The enrollment status for all profiles is displayed.
generic*-user-name
Specify the generic name of the profile to be displayed. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. If a generic name is specified, then all users with names that begin with the generic name, and for which the user has authority, are shown. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete user name.
profile-name
Specify the name of a profile to be displayed.
Top

Profile type (PRFTYPE)

Specifies which enrollment status should be displayed.

*USER
A list of i5/OS users and their enrollment status is displayed. From this display an alternate view is available which will show, for each user in this list, a list of i5/OS groups the user belongs to, provided the group is currently being enrolled into that server.
*GROUP
A list of i5/OS groups and their enrollment status is displayed. An alternate view is available to display for each group in the list, those members of each group that are currently being enrolled into the server.
Top

Server type (SVRTYPE)

Specifies which type of server to work with.

*NWSUSRA
The server type from the network server user attributes (CHGNWSUSRA command) for the user profile running the WRKNWSENR command is used.
*NWSA
The server type in the network server attributes (CHGNWSA command) is used.
*WINDOWS or *WINDOWSNT
Specifies that a list of users and groups enrolled into Windows domains and local servers are displayed.

Note: *WINDOWS should be used in V5R4 and later releases. The *WINDOWSNT value is supported for compatibility with releases prior to V5R4.

Top

Server (SERVER)

Specifies which network servers to work with.

*ALL
All servers that have users enrolled are listed.
*NWSA
The enrollment information for all the servers identified in the network server attributes is displayed.

For *WINDOWS or *WINDOWSNT servers, the enrollment information for all servers defined by the WNTLCLSVRL parameter are displayed.

generic*-server-name
Specify the generic name of the server.
server-name
Specify the name of a specific server.
Top

Domain (DOMAIN)

Specifies which Windows domains to work with.

*ALL
All domains that have users enrolled are listed.
*NWSA
The enrollment information for all the Windows domains identified by the WNTDMNLST parameter in the system network server attributes are displayed.
*NONE
No enrollment information is listed for any Windows domains. Only the enrollment information for local Windows servers is displayed based on the SERVER parameter.
generic*-domain-name
Specify the generic name of Windows domains that have users enrolled.
'domain-name'
Specify the name of a specific Windows domain that has users enrolled.
Top

Examples

Example 1: Working with Windows User Enrollment

WRKNWSENR   SVRTYPE(*WINDOWS)  DOMAIN(DMN*)  SERVER(SRV*)

This command displays a list of all i5/OS users that the i5/OS user enrollment support has enrolled into all Windows domains whose name starts with 'DMN' and all local servers that start with 'SRV'.

Top

Error messages

*ESCAPE Messages

CPFA45A
Network server users not displayed.
Top