--- 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 canonical: "support.whatfix.com/deploy-a-package-using-powershell" --- > ## 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 2. Click **Software Library**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_software_library.jpg?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 3. Expand **Application Management**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_software_library_expand_app_management.jpg?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 7. Click **Browse**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_wizard_browse.jpg?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) > [!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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 11. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) > [!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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 15. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) > [!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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) #### 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 2. Right-click the program, and then click **Deploy**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(644).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 3. Click **Browse** to select a **Collection**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_package_depoly_browse.jpg?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 5. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 9. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 10. In the **Schedule** tab, click **New**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(642).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 13. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 15. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 17. Click **Next**. ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/image(717).png?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) > [!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?sv=2026-02-06&spr=https&st=2026-11-10T18%3A07%3A35Z&se=2026-11-10T19%3A07%3A35Z&sr=c&sp=r&sig=u4qrdd0b%2FyY8SF1hIkXXxSbPYAt7ZIkAt4bz%2Fr8ooC8%3D) 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).