Delete Key Container

 

Declaration

<AMDELETEKEYCONTAINER KEYCONTAINERNAME="NAME" KEYCONTAINERLEVEL="USER" />

See Also

Delete Key Container | Create Key Container |  Generate Key Files | Sign | Verify | Encrypt | Decrypt | Generate Password | Compress Files | Decompress Files | Write to File | Calculate File Checksum | Set Attributes

Description

Deletes a previously created User-Level or Machine-Level key container.

Practical Usage

See description

Parameters

General Properties

Property

Type

Required

Default

Markup

Description

Key Container Name

Text

Yes

(Empty)

KEYCONTAINERNAME="Automate"

Indicates the name of the key container to identify which private or public key to use. You must select the key container by clicking on Select Key Container Button.

Key Container Level

Text

No

User

KEYCONTAINERLEVEL="MACHINE"

Specifies whether the key container to delete is set to User-Level or Machine-Level. The available options are:

  • User (Default)

  • Machine

More details regarding Machine-Level and User-Level key containers can be found below under Additional Notes

Description Properties

The Description tab allows you to customize the text description of any step when it appears in the Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab is part of AutoMate's Error Handling functionality which allows you to select / omit specific errors that will cause a particular step to fail.

More about error causes properties

On Error Properties

The On Error tab is part of AutoMate's Error Handling functionality which allows you to determine what the task should do if a particular step encounters an error.

More about on error properties

Additional Notes

Comparing Machine-Level and User-Level RSA Key Containers

User-level RSA key containers are stored with the Windows user profile for a particular user and can be used to encrypt and decrypt information for applications that run under that specific user identity. User-level RSA key containers can be useful if you want to ensure that the RSA key information is removed when the Windows user profile is removed. However, because you must be logged in with the specific user account that makes use of the user-level RSA key container in order to encrypt or decrypt protected configuration sections, they are inconvenient to use.

Machine-level RSA key containers are available to all users that can log in to a computer, by default, and are the most useful as you can use them to encrypt or decrypt protected configuration sections while logged in with an administrator account. A machine-level RSA key container can be used to protect information for a single application, all the applications on a server, or a group of applications on a server that run under the same user identity. Although machine-level RSA key containers are available to all users, they can be secured with NTFS Access Control Lists (ACLs) so that only required users can access them.

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions

More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Example 1 - Delete USER Level Key Container

 

<AMDELETEKEYCONTAINER KEYCONTAINERNAME="marie.black" KEYCONTAINERLEVEL="USER" />

 

 

Example 2 - Delete MACHINE Level Key Container

 

<AMDELETEKEYCONTAINER KEYCONTAINERNAME="JavaWebStart" KEYCONTAINERLEVEL="MACHINE" />

 

↑ Top of Page