Deploy Files
============

You can deploy files in Windows by uploading a file to the Policy Server, or
providing a download link. Additionally, this agent action allows for actions
to be taken after the file is deployed.

#. Go to **Policy** in the top panel.
#. Go to **Policy > Node Policy > Agent Action** in the left Policy panel.
#. Find and click **Deploy Files** in the Agent Action window.

Under **General** section:

#. For **CWP Message**, add message to be displayed in accordance with the
   Policy.
#. For **Label**, add labels to help categorize your plugins with custom labels
   that appear in the "Description" field.

Under **Agent Actions** section:

#. For **Boolean Operator**, choose **AND** or **OR** to add optional
   conditions.
#. For **Settings**, click **Add** and select your optional conditions.
   **Criteria/Operator/Value**

Under **Plugin Settings:**

#. For **Execution Interval**, adjust Periodic Interval. (*Seconds - hours*)
#. Set **Time Object**, **Retry Interval** and **Retry Attempts**
#. Select **Upload** or **URL** for the **File Deployment Method**.

   - If **Upload**: Use the prompt to upload the desired file to the Policy
     Server.
   - If **URL**: Use the prompt to specify a web address to download the file
     from.

#. For **Verifying Digital Signature**, select **On** or **Off**.

#. For **Post Deployment Action**, select **Run File** or **Download**.

   Files are deployed to **C:\\Program Files\\Geni\\Genian\\Patch** by default.

   - If **Run File**: Use the prompt to select an **Execution Path** + optional
     file name and a **Command Line Parameter** for the distributed file.
     For **Execution Account** select **Root** or **Logon Account**.
     For **Restart Options** select **Do Nothing**, **Prompt**, or **Restart**.

   - If **Download**: Use the prompt to specify a **Destination Path** and optional file
     name for the distributed file.

#. Click **Update.**
#. Go to **Node Policy** in the left Policy panel.
#. Click the **Default Policy** in Node Policy window.
#. Find **Agent Action**. Click **Assign.**
#. Find **Collect Network Information** in the **Available** section. Select
   and drag it into the **Selected** section.
#. Click **Add.**
#. Click **Update.**