Creating Encrypted Command File - Windows

Creating Encrypted Command File for Windows

Command File

In this example, a Universal Command command file named cmdfile.txt contains the following data:

Command File Options

The command file options used in this example are:

Option

Description

-userid

User ID or account with which to execute the remote command.

-pwd

Password associated with -userid.

Note

If you are creating an encrypted file for use with the Universal Controller CLI (Command Line Interface), you must use the CLI command line switches to specify the user ID and password:

  • -p (password)
  • -u (user ID)


Encryption Command

The following command encrypts the command file using AES encryption with an encryption key MYKEY123.

Note

The name of the file containing the text to be encrypted (in this case, cmdfile.txt} must be enclosed in less than (<) and greater then (>) characters.

The resulting encrypted command file, in this case, is encfile.txt.

Command Line Options

The command line options used in this example are:

Option

Description

-key

Encryption key used by the encryption algorithm.

-aes

Specification for whether or not AES encryption is used.

Contents of Encrypted File

The following figure illustrates the contents of encfile.txt.

This encrypted command file now can be used by any Universal Agent command, on any operating system, by specifying the encryption key MYKEY123.

Components

Universal Command Manager for Windows

Universal Encrypt