Hitachi

Hitachi Application Server V10 Command Reference Guide (For Windows® Systems)


2.5.9 setup-local-dcom

Sets up DCOM on a host.

Synopsis

asadmin [asadmin-options] setup-local-dcom [--help]
    [--unsetup={false|true}] [--verbose={false|true}]
    [--force={false|true}]

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The setup-local-dcom subcommand sets up the Distributed Component Object Model (DCOM) remote protocol on the host where the subcommand is run. The DCOM remote protocol is available only on Windows systems.

This subcommand must be run by the operating-system-level administrator user on the host where DCOM is set. Before running this command, ensure that DCOM settings in the Windows operating system are set as described in the documents of the GlassFish Server Open Source Edition.

Setting up DCOM on a host ensures that you can run the scripts on the host from a remote host. To run scripts on the host from a remote host, the Windows user must be allowed full control over some of the Windows registry keys.

In some versions of Windows, only the user NT SERVICE\TrustedInstaller has full control over these Windows registry keys. If the version of Windows on a host is configured using this method, then this subcommand modifies these keys to allow full control over them for the respective Windows user.

Important note

This subcommand may modify some keys in the Windows registry. Before running this command, back up the Windows registry.

By default, the subcommand prompts you to confirm whether to update the Windows registry. To run the subcommand without being prompted, set the --force option to true.

After updating the Windows registry using this subcommand, you must restart Remote Registry service.

This subcommand is supported in the local mode only.

When this subcommand is run, the registry is updated to make the following DCOM applications available. In addition, if you specify the --unsetup option, the registry is updated to make the following DCOM applications unavailable.

When this subcommand is run, the registry setting is updated as follows:

Execution permission

OS-level administrator user

Arguments

--help | -?

Displays the help text for the subcommand.

--force={false|true}

Specifies whether the subcommand prompts you to confirm whether to update the Windows registry.

Type: Boolean

The following values can be specified:

  • false

    Prompts you to confirm whether to update the Windows registry. This is the default value.

  • true

    Updates the registry forcibly without prompting you for a confirmation.

Default value: false

--verbose={false|true}

Specifies whether the subcommand displays information about the operations that are performed to set up DCOM on the host.

Type: Boolean

The following values can be specified:

  • false

    Information about the operations that are performed to set up DCOM is not displayed. This is the default value.

  • true

    Displays information about the operations that are performed to set up DCOM on the host.

Default value: false

--unsetup={false|true}

Specifies whether to remove DCOM on the host.

Type: Boolean

The following values can be specified:

  • false

    Set up DCOM on the host. This is the default value.

  • true

    Remove DCOM on the host.

Default value: false

Examples

The following example sets up DCOM on the host where the subcommand is run:

asadmin setup-local-dcom
Caution: This command might modify the permissions of some keys in the Windows
registry.
Before running this command, back up the Windows registry.
The modification allows the Windows user full control over these keys.
Are you sure that you want to edit the Windows registry? If so, type yes in full:
yes
Command setup-local-dcom executed successfully.

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.

Notes