Template - createLocalUserListTemplate

Template - createLocalUserListTemplate

Description :

This command creates a template with all the local users as assets. This command returns a handle to the newly created template. The handle can be used for other commands that need a reference to the new template.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateName

String

Template name.

groupId

Integer

Handle to the group that should contain the template.

bExplicit

Boolean

True to create an explicit template, false to create an implicit template. (An implicit template is one that does not appear in the GUI.)

bUserLastLogonDate

Boolean

Audit option for user last logon date. True to turn option on, false otherwise.

bUserMemberOf

Boolean

Audit option for user membership. True to turn option on, false otherwise.

bUserAccountStatus

Boolean

Audit option for user account status. True to turn option on, false otherwise.

bUserLastPasswordChangeDate

Boolean

Audit option for user's last password change. True to turn option on, false otherwise.

bUserExpireDate

Boolean

Audit option for user's password expiration date. True to turn option on, false otherwise.

bUserFullName

Boolean

Audit option for user's full name. True to turn option on, false otherwise.

bUserDescription

Boolean

Audit option for user's description. True to turn option on, false otherwise.

bUserHomePath

Boolean

Audit option for user's home path. True to turn option on, false otherwise.

bUserHomeDirDrive

Boolean

Audit option for user's home directory drive. True to turn option on, false otherwise.

bUserProfilePath

Boolean

Audit option for user's profile path. True to turn option on, false otherwise.

bUserLoginScript

Boolean

Audit option for user's login script. True to turn option on, false otherwise.

bUserPrivilegeLevel

Boolean

Audit option for user's privilege level. True to turn option on, false otherwise.

bUserControlFlags

Boolean

Audit option for user's control flags. True to turn option on, false otherwise.

bUserLogonServer

Boolean

Audit option for user's logon server. True to turn option on, false otherwise.

bUserWorkstations

Boolean

Audit option for user's workstations. True to turn option on, false otherwise.

bUserCountryCode

Boolean

Audit option for user's country code. True to turn option on, false otherwise.

bUserCodePage

Boolean

Audit option for user's code page. True to turn option on, false otherwise.

Example

The following example shows how to create a new template containing the top level local user node. The other commands for creating templates with top level nodes are similar.

Script

# Name of the new template. 

TEMPLATE_NAME="template1" 

# Group in which template is to be stored. 

TEMPLATE_GROUP="/parent/group1" 

TEMPLATE_GROUP_ID=`blcli TemplateGroup groupNameToId $TEMPLATE_GROUP` 

# Template type. Set to false if     you want to create an implicit template. (An implicit template is one that does not appear in the GUI.) 

bExplicit="true" 

# Options Section # 

# Use these to set the various options available through the GUI.     Setting a value to true is the same as checking it in the GUI. 

# All options must be set to true or false for the command to succeed. 

# The text in each comment below is the label from the GUI. See the documentation for the GUI for further details on each option. 

# Audit - Last login date 

OPTIONS="true" 

# Audit - Group user is a member of 

OPTIONS="${OPTIONS} true" 

# Audit - Account status 

OPTIONS="${OPTIONS} true" 

# Audit - Account Last password change date 

OPTIONS="${OPTIONS} true" 

# Audit - Account expire date 

OPTIONS="${OPTIONS} true" 

# Audit - Full name 

OPTIONS="${OPTIONS} true" 

# Audit - Description 

OPTIONS="${OPTIONS} true" 

# Audit - Home path 

OPTIONS="${OPTIONS} true" 

# Audit - Home dir drive 

OPTIONS="${OPTIONS} true" 

# Audit - Profile path 

OPTIONS="${OPTIONS} true" 

# Audit - Login script 

OPTIONS="${OPTIONS} true" 

# Audit - Privilege level 

OPTIONS="${OPTIONS} true" 

# Audit - Control flags 

OPTIONS="${OPTIONS} true" 

# Audit - Logon server 

OPTIONS="${OPTIONS} true" 

# Audit - Workstations 

OPTIONS="${OPTIONS} true" 

# Audit - Country code 

OPTIONS="${OPTIONS} true" 

# Audit - Code page 

OPTIONS="${OPTIONS} true" 

TEMPLATE_DBKEY=`blcli Template createLocalUserListTemplate $TEMPLATE_NAME $TEMPLATE_GROUP_ID $bExplicit $OPTIONS ` 

# Use the returned DBKey to add more items to the template. 



Was this page helpful? Yes No Submitting... Thank you

Comments