Top
Create an Uninstall Program using PowerShell
  • 28 May 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Create an Uninstall Program using PowerShell

  • Dark
    Light
  • PDF

Article summary

The following example shows the steps to create an uninstall SCCM Program using PowerShell:

  1. On your Windows system, open the Configuration Manager Console.


  2. Click Software Library.

  3. Expand Application Management.

  4. Right-click the Package you just created, and click Create Program.



  5. In the Create a Package and Program Wizard, specify a name and other information.

  6. Select the This package contains source files checkbox.


  7. Click Browse.

  8. In the Set Source folder window, select Network path (UNC name), and then click Browse once again.

  9. Select or enter a source path and then click OK.

    Info:

    A folder must be created in the primary site server where you download and save the PowerShell script. In this step, select the location of the source folder. For example, \\wfx-sccmps01\Whatfix Packages\Powershell.


  10. Select Standard program.

  11. Click Next.


  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


    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.


  14. Select This program can run on any platform.

  15. Click Next.


  16. Click Next.


    Info:

    The Completion section displays the following message if the Package is created successfully:


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.