Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/create-an-uninstall-program-using-powershell-for-an-sccm-package

# 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**. ![](/images/f0/sccm_open_console-f0068ede.jpg)
2. Click **Software Library**. ![](/images/9b/sccm_software_library-9be04b74.jpg)
3. Expand **Application Management**. ![](/images/a3/sccm_software_library_expand_app_management-a3f2732a.jpg)
4. Right-click the Package you just created, and click **Create Program.** ![](/images/5a/sccm_create_program-5a994548.jpg)
5. In the **Create a Package and Program Wizard**, specify a name and other information. ![](/images/ee/sccm_package_wizard_info-ee12410e.jpg)
6. Select the **This package contains source files** checkbox. ![](/images/57/sccm_package_wizard_source_files_checkbox-573cd1e0.jpg)
7. Click **Browse**. ![](/images/98/sccm_package_wizard_browse-98cbfed8.jpg)
8. In the **Set Source folder** window, select **Network path (UNC name)**, and then click **Browse** once again. ![](/images/dd/sccm_package_wizard_network_browse-dd10fb01.jpg)
9. Select or enter a source path and then click **OK**. ![](/images/90/sccm_package_wizard_browse_path_ok-90f49119.jpg)

> [!INFO]
>
> A folder must be created in the primary site server where you [download and save the PowerShell script](/web/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**. ![](/images/fc/sccm_package_wizard_standard_program-fc2b246c.jpg)
11. Click **Next**. ![](/images/f0/image-717-f000d79a.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 ![](/images/78/sccm_package_wizard_program_fields-78a0777f.jpg)

> [!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**. ![](/images/f0/image-717-f000d79a.png)
14. Select **This program can run on any platform**. ![](/images/d1/sccm_package_sys_req_plat-d1e29349.jpg)
15. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
16. Click **Next**. ![](/images/b7/sccm_package_wizard_summary-b72d6429.jpg)

> [!INFO]
>
> The **Completion** section displays the following message if the Package is created successfully: ![](/images/64/sccm_package_wizard_success-6439eb9a.jpg)
