Intune – You can now launch script from SCCM from the Intune portal

If you are using System Center Configuration Manager Current Branch (SCCM Current Branch) version 2006 in a co-management configuration with Intune/Endpoint Configuration Manager, you can now launch the scripts created in SCCM from the Endpoint Configuration Manager portal.

Before being able to do it, you first need of course to have created a script in SCCM (see https://docs.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-deploy-scripts).

Then you need to have the appropriate PowerShell version and/or modules called by your script on your client devices (in case of course you have to run your script with a specific version of PowerShell or specific modules); otherwise the script will fail to execute.

Then you can connect to your Endpoint Configuration Manager portal (https://endpoint.microsoft.com/) to access the Devices\Windows\Windows Devices blade

image_thumb

Then select the device on which you want to get the script executed and access the Scripts blade to select the script to run

image_thumb[1]

Depending of your script configuration you may (or may not) see an output on the right side; the script I used for this blog is just doing a Write-Host

image_thumb[2]

Benoit Hamet
Benoit Hamet
Benoit is working on Microsoft collaborative technologies He has been awarded as MVP for more than 12 years Currently MVP on Office 365 after being awarded on SharePoint (2011-2012) and Windows client & server (2002-2007) Speaker at various Microsoft events (TechDays, TechNet seminars) and Quest Software He works on on-premises (Active Directory, RADIUS/NPS, Exchange, Skype for Business, SharePoint, SQL, Terminal Server, Windows client and Windows Server) or online (Azure, Intune, Office 365, Exchange Online, SharePoint Online, Skype for Business Online, Teams) technologies