Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/deploy-an-application-using-powershell

# Deploy a SCCM Application using PowerShell

> [!WARNING]
>
> The following steps, for example, show how you can create an application to install the Whatfix extension on Edge using a PowerShell script.

Expand the following accordions to create an application and distribute the Whatfix extension:

#### **Step 1:** **Create an application**

The following example shows the steps to create the Whatfix extension on Chrome using a Powershell script:

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 **Applications**, and then click **Create Application**. ![](/images/71/image-645-71365bc2.png)
5. In the **Create Application Wizard**, select **Manually specify the application information** option. ![](/images/22/image-646-22b86058.png)
6. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
7. Enter the information about the application that you are creating and then click **Next**. ![](/images/c8/image-647-c816a148.png)
8. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
9. Click **Add**. In this step you need to add the script installer. ![](/images/4f/image-648-4fd44156.png)
10. In the **Type** dropdown, select **Script Installer**. ![](/images/8b/image-649-8b400737.png)
11. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
12. Enter the details in the **Name** and **Administrator** **comments** fields. ![](/images/4d/image-650-4da4aee6.png)
13. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
14. Click **Browse** and select the path to the deployment content. For example, `\\wfx-sccmps01\Whatfix Packages\` ![](/images/f3/image-651-f3d78864.png)

> [!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`.

15. In the **Installation program** field, enter the following code to install the extension for the Edge browser: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Edge` ![](/images/d6/image-658-d6393644.png)

> [!INFO]
>
> If you want to install the extension on the Chrome browser using Powershell, enter the folowing command: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Chrome`

16. In the **Uninstall program** field, enter the following code to uninstall the extension for the Edge browser: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Edge -Remove True` ![](/images/e4/image-659-e4ad1281.png)

> [!INFO]
>
> If you want to uninstall the extension on the Chrome browser using Powershell, enter the folowing command: `powershell.exe -executionpolicy bypass -file "Whatfix-ExtensionInstall.ps1" -Browser Chrome -Remove True`

17. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
18. Click **Add Clause**. ![](/images/be/image-669-bec32f9b.png)
19. In the **De\*\*\*\*tection Rule** window, change the **Setting Type** to **Registry**. ![](/images/95/image-660-952600a6.png)

> [!INFO]
>
> In the Detection rule window, you need to configure a success criteria so that a deployment is successful.

20. Select **HKEY\_LOCAL\_MACHINE** from the **Hive** dropdown. ![](/images/ef/image-661-efe103dd.png)
21. Click **Browse**. ![](/images/1e/image-668-1e01e370.png)
22. In the **Browser Registry** window, go to to the following path **HKEY\_LOCAL\_MACHINE** → **SOFTWARE** → **Policies** → **Edge** → **ExtensionInstallForcelist.** ![](/images/79/image-662-795eb18d.png)
23. Double-click the **Registry Value** as shown below. ![](/images/48/image-663-48434cf9.png)
24. Select **Data Type** as **String**, and then click **Ok**. ![](/images/aa/image-664-aa0aedd7.png)
25. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
26. In the **User Experience** tab, select the fields as shown below (Recommended): **Installation behavio**r: Install for system **Logon requirement**: Whether or not a user is logged in **Installation program visibility**: Hidden **Maximum allowed run time (minutes):** 120 **Estimated installation time (minutes):** 0 ![](/images/de/image-666-de31cb1f.png)
27. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
28. Verify the summary of the application, and then click **Next**. This creates the deployment configuration for the application. ![](/images/89/image-667-8966fe1d.png)
29. You are redirected to the **Create Application Wizard** window. Click **Next** to view the changes in the **Summary** tab. ![](/images/2a/image-670-2a39af4b.png)
30. Click **Next**. This completes the creation of the Application.

> [!INFO]
>
> The Completion tab displays the status once the application is successfully created. ![](/images/20/image-671-205c925c.png)

#### Step 2: Distribute the application

After you have created the application, you must distribute the content to your end users system. Use the following steps to distribute the Whatfix extension:

1. Right-click the application you created in Step 1, and then click **Distribute Content.** ![](/images/e6/image-672-e6b4f856.png)
2. Click **Next**. ![](/images/b6/image-673-b6cac3cc.png)
3. Click **Next**. ![](/images/65/image-674-65b04a73.png)
4. Expand the **Add** dropdown, and then click **Distribution Point**. A distribution point is a server where the applications are hosted. ![](/images/d9/sccm_package_depoly_add_distribution_point-d9bbecee.jpg)
5. Select the Distribution Points that hosts the Application, and then click **Ok**. ![](/images/10/sccm_package_depoly_select_distribution_points-102fa197.jpg)
6. Review the changes, and then click **Next**. ![](/images/d7/image-675-d767a340.png)

#### Step 3: Deploy the application

Use the following steps to deploy the Whatfix extension:

1. Right-click the application, and then click **Deploy**. ![](/images/6e/image-680-6ef2a400.png)
2. Click **Browse.** ![](/images/01/sccm_package_depoly_browse-01bf9997.jpg)
3. Select a **Collection**, and then click **Ok**. A Collection is a group of devices on which you want to deploy the extension. ![](/images/d8/sccm_package_deploy_collection_ok-d88ee6b6.jpg)
4. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
5. The distribution points are automatically added. Click **Next**. ![](/images/ba/image-681-ba672da9.png)
6. In the **Deployment Settings** tab, set the **Purpose** to **Required**, and the other settings as follows: ![](/images/16/image-682-16653054.png)
7. Click **Next**. ![](/images/f0/image-717-f000d79a.png)
8. In the **Scheduling** tab, click **Next**. ![](/images/5a/image-683-5a2cd26a.png)
9. Select the options as shown below, and then click **Next**. ![](/images/16/image-684-16d37892.png)
10. Verify the changes in the **Summary** tab, and then click **Next**. The wizard starts deploying the extension. ![](/images/9d/sccm_package_depoly_summary-9d050b1e.jpg)

> [!INFO]
>
> The **Completion** tab displays the following message if the Application is deployed successfully: ![](/images/92/sccm_package_depoly_task_succesful-9256bc37.jpg)

#### Step 4: View the distribution status of the application

Use the following steps to check the status and other details of your application:

1. Select the application that you want to check the status of. ![](/images/e7/image-677-e76f9f92.png)
2. In the **Summary** tab, click **Content Status**. You are redirected to the **Monitoring** section. ![](/images/15/image-678-15421296.png)
3. The **Monitoring** section displays the status details of the application. ![](/images/f0/image-679-f0e478c2.png)

To know more about the deployment status of your application, see [View SCCM Deployment Status](/web/view-and-generate-sccm-deployment-status).
