Zero Touch Provisioning Developer Guide

Appendix C: Action Scripts Supplied with ZTP

Published: August 27, 2005

Table 21 lists the action scripts supplied with ZTP.

Table 21. Action Scripts Supplied with ZTP

ScriptDescription

AddUserToGroup.vbs

Provides the ability to add user objects to both Distribution Lists and Security Groups.

Parameters Accepted:

USERDN—The distinguished name of the user to add to a group.

GROUPDN—The distinguished name of the group to add the user to.

CreateObject.vbs

Provides the ability to create an object within a Windows Active Directory site.

Parameters Accepted:

OBJECTCN – Common name of the object to create

OBJECTTYPE – the type of object to create

OUDN – the Distinguished name of the organizational unit to create the object in

SAMACCOUNTNAME – the samAccountName of the object to be created.

DisableUser.vbs

Provides the ability to disable a user object within Active Directory.

Parameters Accepted:

USERDN—The distinguished name of the Active Directory account to disable.

mastertemplate.vbs

Provides guidance about basic parameter and error handling. This is the base script template for all ZTP scripts.

RemoveUserFromGroup.vbs

Provides the ability to remove user objects from both Distribution Lists and Security Groups

Parameters Accepted:

USERDN—The distinguished name of the user to remove from a group.

GROUPDN—The distinguished name of the group to remove the user from.

resetpassword.vbs

Provides the ability to reset Windows Active Directory passwords.

Parameters Accepted:

USERDN—The Active Directory distinguished name of the account to reset the password on.

SENDTOUSER—The Windows Active Directory samAccountName of the user to send the generated password to.

testevent.vbs

Used for debugging RunScript actions. This script simply echoes script parameters sent in back out to the Windows application event log.

Parameters Accepted:

Any


Top of pageTop of pagePrevious10 of 18Next
**
In This Article
**