This script captures and restores the local group membership on the target computer. This script is called with the /capture argument to back up the group membership from the target computer before deploying the operating system. The CaptureGroups property contains the list of groups that script backs up. The script is called with the /restore argument to restore the group membership after the operating system is deployed. When performing a restore operation, it restores the membership of all groups that were backed up when the script was run using the /capture argument.

Note   When restoring group membership, the script does not create any destination groups that do not already exist on the target computer. Therefore, be sure to include all required groups in the reference computer when building the image file.

 

Value

Description

Input

Environment variables. Contains the property values, custom property values, database connections, deployment rules, and other information that the scripts require to complete the deployment process

Output

·     ZTIGroups.log. Log file that contains events that this script generates

·     BDD.log. Log file that contains events that all MDT scripts generates

References

ZTIUtility.vbs. Includes support functions and subroutines that the script uses

Location

distribution\Scripts

Use

cscript ZTIGroups.wsf </debug:value> </backup> </restore>

 

Arguments

Value

Description

/debug:value

Outputs the event messages to the console and to the .log files. If the value specified in value is:

·     TRUE, event messages are sent to the console and the .log files

·     FALSE, event messages are sent only to the .log files (This is the behavior when the argument is not provided.)

/capture

Backs up the group membership of the local groups on the target computer as specified in the CaptureGroups property

/restore

Restores the group membership to the local groups backed up earlier in the deployment process

 

Properties

Name

Read

Write

CaptureGroups

˜

 

Groups

˜

˜

HostName

˜

 

 

Related Topics

Scripts