- 28 May 2025
- 2 Minutes To Read
- Print
- DarkLight
- PDF
Deploy a Package using PowerShell Script
- Updated On 28 May 2025
- 2 Minutes To Read
- Print
- DarkLight
- PDF
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.
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:
On your Windows system, open the Configuration Manager Console.
Click Software Library.
Expand Application Management.
Right-click Packages, and then click Create Package.
In the Create a Package and Program Wizard, specify a name and other information.
Select the This package contains source files checkbox.
Click Browse.
In the Set Source folder window, select Network path (UNC name), and then click Browse once again.
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
.Select Standard program.
Click Next.
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 nameInfo:
- 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
Click Next.
Select This program can run on any platform.
Click Next.
Verify the settings in the Details field, and then click Next.
Info:
The Completion section displays the following message if the Package is created successfully:
Step 2: Deploy the extension
Use the following steps to deploy the Whatfix extension:
Select the PowerShell package.
Right-click the program, and then click Deploy.
Click Browse to select a Collection.
Select a collection, and then click Ok. A Collection is a group of devices on which you want to deploy the extension.
Click Next.
Expand the Add dropdown, and then click Distribution Point. A distribution point is a server where the packages are hosted.
Select the distribution points that will host the Package.
In the Deployment Settings tab, set the purpose to Required, and the other settings as follows:
Click Next.
In the Schedule tab, click New.
Select the Assign immediately after this event option, and then click Ok.
In the Rerurn behavior field, select the Return if failed previous attempt option.
Click Next.
In the User Experience tab, select the options show in the following image:
Click Next.
Select Download content from the distribution point and run locally option for both the Deployment options highlighted in the following image:
Click Next.
Verify the changes in the Summary tab, and then click Next. The wizard starts deploying the extension.
Info:
The Completion tab displays the following message if the Package was deployed successfully:
To know more about creating an uninstall program, see Create an Uninstall Program using PowerShell.