---
title: "Deploy a Package using PowerShell Script"
slug: "deploy-a-package-using-powershell"
updated: 2025-05-28T02:52:20Z
published: 2025-05-28T02:52:20Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.whatfix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy a Package using PowerShell Script

The following steps highlight the order in which you need to create a program and deploy the Whatfix extension as a **Package**:

- **Create a Package:** Package the Whatfix extension in a format that SCCM can distribute (For example, an installer file).
- **Create a Program:** In SCCM, specifies what actions the tool should perform, such as install or uninstall the extension.
- **Deploy the Extension:** SCCM then distributes the extension to the targeted machines with the option to forcefully install or make it available for your end users to install the extension.

> [!WARNING]
> Note:
> 
> The following steps, for example, show how you can create a package to install the Whatfix extension on Chrome browser using Powershell.

Expand the following accordions to learn how to configure and deploy Whatfix extension as a package using a PowerShell script:

#### **Step 1: Create a package and choose program type**

The following example shows the steps to create the Whatfix extension on Chrome using Powershell:

1. On your Windows system, open the **Configuration Manager Console**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_open_console.jpg)
2. Click **Software Library**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_software_library.jpg)
3. Expand **Application Management**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_software_library_expand_app_management.jpg)
4. Right-click **Packages**, and then click **Create Package**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_packages_create_package.jpg)
5. In the Create a **Package and Program Wizard**, specify a name and other information. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_info.jpg)
6. Select the **This package contains source files**checkbox. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_source_files_checkbox.jpg)
7. Click **Browse**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_browse.jpg)
8. In the **Set Source folder** window, select **Network path (UNC name)**, and then click **Browse** once again. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_network_browse.jpg)
9. Select or enter a source path and then click **Ok**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_browse_path_ok.jpg)

> [!NOTE]
> Info:
> 
> A folder must be created in the primary site server where you [download and save the PowerShell script](/studio/docs/single-installer-for-whatfix-extensions). In this step, select the location of the source folder. For example, `\\wfx-sccmps01\Whatfix Packages\Powershell`.
10. Select **Standard program**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_standard_program.jpg)
11. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
12. In the **Specify information about this standard program** section, enter the following information for each field: - **Name**: Install Extension on Chrome - **Command line**: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Chrome` - **Run**: Hidden - **Program can run**: Whether or not a user is logged in - **Drive mode**: Runs with UNC name ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_program_fields.jpg)

> [!NOTE]
> Info:
> 
> - If you want to create a program to install the package on Edge, use the following command line: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Edge`
13. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
14. Select **This program can run on any platform**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_sys_req_plat.jpg)
15. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
16. Verify the settings in the Details field, and then click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_summary.jpg)

> [!NOTE]
> Info:
> 
> The **Completion** section displays the following message if the Package is created successfully: ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_success.jpg)

#### Step 2: Deploy the extension

Use the following steps to deploy the Whatfix extension:

1. Select the PowerShell package. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(643).png)
2. Right-click the program, and then click **Deploy**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(644).png)
3. Click **Browse**to select a **Collection**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_browse.jpg)
4. Select a collection, and then click **Ok**. A Collection is a group of devices on which you want to deploy the extension. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_deploy_collection_ok.jpg)
5. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
6. Expand the **Add** dropdown, and then click **Distribution Point**. A distribution point is a server where the packages are hosted. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_add_distribution_point.jpg)
7. Select the distribution points that will host the Package. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_select_distribution_points.jpg)
8. In the **Deployment Settings** tab, set the purpose to **Required**, and the other settings as follows: ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(641).png)
9. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
10. In the **Schedule** tab, click **New**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(642).png)
11. Select the **Assign immediately after this event**option, and then click **Ok**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(635).png)
12. In the **Rerurn behavior** field, select the **Return if failed previous attempt** option. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_run_behaviour.jpg)
13. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
14. In the **User Experience** tab, select the options show in the following image: ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_schedule_UX.jpg)
15. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
16. Select **Download content from the distribution point and run locally** option for both the **Deployment options** highlighted in the following image: ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_deployment_options.jpg)
17. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png)
18. Verify the changes in the **Summary** tab, and then click **Next**. The wizard starts deploying the extension. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_summary.jpg)

> [!NOTE]
> Info:
> 
> The **Completion** tab displays the following message if the Package was deployed successfully: ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_task_succesful.jpg)

To know more about creating an uninstall program, see [Create an Uninstall Program using PowerShell](/studio/docs/create-an-uninstall-program-using-powershell-for-an-sccm-package).
