Deploy PowerShell Script as Win32 Application Intune – No Batch or CMD

So, I’ve been deep in PowerShell recently and realised it has been way too long since I dropped a useful post.

Many people have blogged about this, stating that it is required to create a CMD or Batch file inside the Intune-Win32-App-Packaging-Tool to launch the script from and then run that.

Well, you don’t… 😉

Follow the usual packaging procedure using the Intune-Win32-App-Packaging-Tool but adjust your install and uninstall command lines to run the script as follows:

Install Command:

Uninstall Command:

If your script is built with parameters this also works as well For example:

Install Command with Parameters:

Uninstall Command with Parameters:

Cheers, SCCMOG

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.