---
title: "Create an Uninstall Program using PowerShell"
slug: "create-an-uninstall-program-using-powershell-for-an-sccm-package"
updated: 2025-05-28T02:08:33Z
published: 2025-05-28T02:08:33Z
---

> ## 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.

# Create an Uninstall Program using PowerShell

The following example shows the steps to create an uninstall SCCM Program 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 the Package you just created, and click **Create Program.** ![](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/sccm_create_program.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 -Remove True` - **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 uninstall the package on Edge, use the following command line: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Edge -Remove True`
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. 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)
