Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


2.2 Accounts for communication with other computers

This section describes the accounts used for communication with other computers.

To use the SetGV, GetGV, DeleteGV, or NetExec command to call a remote computer, you must use an appropriate account and password to execute the script that calls the commands. Unless you use an appropriate account and password that allows you to log on to the called computer, the commands will not function properly.

Table 2-1 lists the accounts and passwords that are used for executing scripts that call commands.

Table 2‒1: Accounts and passwords used for executing scripts that call commands

No.

Script execution method

Account and password used for executing the caller script

1

Script is executed from the JP1/Script service by the automatic startup function.

Logon account and password that were set for the JP1/Script service.#

2

Script is executed from a JP1/AJS service program.

OS user's account and password that were mapped to the JP1 user executing the script.

3

Script is executed from a service program other than JP1/AJS.

Logon account and password that were set for the service.#

4

Script is executed from Script Launcher by the automatic startup function.

Account and password that were used to log on to the computer.

5

Script is executed from Script Manager or Script Editor.

6

Script is executed directly from Windows Explorer or another program.

#

You cannot use the system account as the service account when using the SetGV, GetGV, DeleteGV, or NetExec command to call a remote computer. A user account that exists on the called computer must be set for the service account.

Table 2-2 lists the execution accounts and passwords that are used when the connection is successful and the NetExec command executes an executable file on the called computer.

The execution accounts and passwords in Table 2-2 are also used when, for example, the NetExec command calls a copy operation (including the Copy command) to the file server on the domain.

Table 2‒2: Accounts and passwords of executable files called from the NetExec command

No.

Value of the fifth argument of the NetExec command

Account and password used for the called executable files

1

True (execute in service space)

Logon account and password of Script service in the called computer

2

False (execute in logon space)

Account and password used to log on to the called computer

For details about the SetGV, GetGV, and DeleteGV commands, see 8.2.5 SetGV (set a global variable), 8.2.6 GetGV (get a global variable), and 8.2.7 DeleteGV (delete a global variable).

For details about the NetExec command, see 8.10.2 NetExec (call an executable file on the local PC or remote PC).