Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Create Script

  • Last UpdatedApr 22, 2025
  • 3 minute read

Click Users or MDBs on the Manage tab. Click Create Script. The Command Script Generation window is displayed, from which you can generate encrypted command scripts.

If a user is selected, that user is specified in the Command Script Generation window.

If an MDB element is selected, the MDB option is checked and the MDB specified in the window.

The Command Script Generation window requires the user to enter and confirm the correct password for the specified user, and input or select via Browse an output filename. MDB selection is optional, as is the selection of an input command script.

These scripts are typically used as a basis for unattended administration activities, which might include map build, clash identification, and a Data Integrity Check (DICE). This is a method for storing encrypted administrator credentials or other users, to access the project when the user is not present, at night or during the weekend for example.

Note:
The Input option is available only if a Programmable Macro Language (PML) Publisher license is available in the current environment.

To apply a set of Environmental conditions, select the check box next to the Conditions button and then click the Conditions button to display the Command Scripts Conditions window.

A set of allowed Windows users and a set of allowed host computers can be added by entering their names into the Add User and Add Host fields. Optionally, a full or partial time period can be specified using the Before and After check boxes and date controls. Clicking OK records the specified conditions to be applied or edited later.

On clicking OK in the Command Script Generation window an encrypted command script is written to the output filename specified (with confirmation if that file exists). If no input script has been specified, the generated script must be called from within an enclosing PML script using $M syntax. In this case, it is necessary that the calling PML script exits when its operation is complete, otherwise the remaining interactive session will terminate with a fatal error when an attempt is made to enter any command. If an input script is specified then the generated script is complete and can be executed directly.

When the enclosing PML script or generated encrypted script is executed directly using the Monitor executable, the following actions occur:

  • Enter the current project.

  • Login as the given user with the given password (if correct).

  • Optionally, select the given MDB.

  • Optionally, verify that the Windows user executing the batch script is in the set specified in the conditions. If this fails then the batch job will terminate immediately.

  • Optionally, verify that the host computer name is in the set specified in the conditions.

  • Optionally, verify that the current time falls within the time period specified in the conditions.

  • Execute the command script given as Input, or following the $M command in an enclosing script.

  • Finish.

TitleResults for “How to create a CRG?”Also Available in