# Migrate Script-based Applications from ConfigMgr to Intune using Patch My PC Cloud App Migration

*Applies to: Patch My PC Cloud*

{% hint style="info" %}
**Note**

Support for Script-based apps is still in development and is expected to be available soon.
{% endhint %}

When applications are inventoried from Microsoft Configuration Manager (ConfigMgr), Patch My PC (PMPC) Cloud analyzes the application metadata to determine how the application is installed and should be migrated. As part of this process, the installation command line is evaluated, and the primary installer file is identified from the application’s content source folder.

## Identifying a Script-based App

ConfigMgr does not explicitly label an application as Script-based. In most cases, the easiest way to confirm that an application is Script-based is to select the application from the Migration dashboard and review the **Installation Program** field.

If the **Installation Program** contains a **.ps1, .cmd, .bat** or **.vbs** file reference, the application can be considered Script-based.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2Fe8KFjebMerj6UBx49PTo%2Fimage.png?alt=media&#x26;token=be9f2712-4123-43a4-b540-907ea2df73db" alt="Script-based app identified from the installation program" width="563"><figcaption></figcaption></figure>

During the migration deployment flow, the **File** tab also indicates when an application is being treated as Script-based, and the script content is displayed.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2Fu55YHVmoUvcVgcbZEIfC%2Fimage.png?alt=media&#x26;token=8dd997d6-554d-4cc5-8093-3eebdd666362" alt="Script-based app shown in the deployment flow" width="563"><figcaption></figcaption></figure>

If the application is identified as Script-based, as much of the existing metadata as possible is captured to support migration. This includes any supporting content to ensure the application behaves the same way after migration to Intune.&#x20;

## Migration Behavior of Script-based Apps

Script-based apps can only be migrated as PMPC Custom Apps.

When the application is migrated, **PatchMyPC-ScriptRunner.exe** becomes the new primary installer and invokes the original script defined in the installation command line. This approach preserves the original installation behavior whilst allowing the deployment to leverage additional PMPC customizations that would be unavailable with a "lift and shift" migration.

In the example below, a PowerShell-based Windows Update script is being migrated. The installation script content is displayed inline within the migration flow, allowing it to be reviewed or edited before proceeding. The script is currently not code-signed, as indicated by the warning below the editor. The script can be exported for signing and then re-imported, or migrated "as-is," depending on your organization’s script-signing requirements.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FTRjf1Hb4QH8Y3BmdN9Zy%2Fimage.png?alt=media&#x26;token=4a18c642-e4ca-41b6-b4ff-ea23ab2405db" alt="Script-based app flow"><figcaption></figcaption></figure>

{% hint style="danger" %}
**Important**

If the script is code-signed, any modification on the **File** tab will invalidate the existing signature. For this reason, editing should only be performed on unsigned scripts. Signed scripts should be exported, re-signed after any changes, and then re-imported before completing the migration.
{% endhint %}

## Preserved Properties of Script-based Apps

The following information indicates the properties that are carried forward from the ConfigMgr application to the migration deployment flow when the application is migrated as a PMPC Custom App:

* Source Files
* DisplayName
* Vendor
* Description
* Version
* Return Codes
* Information URL
* Privacy URL
* Detection Rules.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.patchmypc.com/patch-my-pc-cloud/migration/how-different-apps-migrated/migrate-script-apps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
