Skip to content
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr

Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr

Written By Anoop C Nair
Last Updated July 4, 2024
Posted In SCCM
SHARE

In this post, I’ll provide a step-by-step guide on activating the SCCM Run scripts feature from Intune Portal within ConfigMgr. Microsoft has recently rolled out an update, including the Tenant Attach rollup hotfix (KB4580678) for Configuration Manager CB, version 2006.

This KB helps you enable the SCCM Run scripts feature from Intune Portal (a.k.a Microsoft Endpoint Manager admin centre) and fix some issues related to tenant attachment.

The KB 4580678 is a feature enablement hotfix and has been uncommon in the SCCM world until now. The new feature will allow admins to use the Intune portal (MEM admin centre) to initiate Run Script functionality without logging into the SCCM console.

This KB article update is available in the Updates and Servicing node of the ConfigMgr console for environments that completed the Tenant attach process and were installed using an early update ring or globally available builds of version 2006.

Patch My PC
Index
Announcement – SCCM Run Scripts Feature from Intune
Issues Fixed with KB 4580678
Prerequisite -Enable SCCM Run Scripts Feature from Intune
Permissions Required
Install KB4580678 to Enable the Run Script Feature from Intuen
Client-Side Update -SCCM Run Scripts Feature from Intune
Run a Script Uploaded to SCCM via the Intune Portal
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr – Table 1

Announcement -SCCM Run Scripts Feature from Intune

Rob York, Program Manager for Microsoft Endpoint Manager on OSD, CMG, and the codification of Windows management, announced this.

When the ConfigMgr environment is completed with the Tenant Attach feature, Microsoft will add additional cloud value features for Help Desk personas.

Yet more #CloudValue will appear for tenant-attached customers over the next week. Run scripts in real time on #ConfigMgr devices from the admin centre. To enable this feature, a small, hotfix-esque update is required on top of CM2006. https://t.co/oGz0kFfWme #mempowered pic.twitter.com/K2aMNsDBki — Rob York (@robdotyork) September 18, 2020

Issues Fixed with KB 4580678

This hotfix also enables the option to run a script from the Intune portal and fixes some known issues with tenant attachments.

  • Features like Scripts in the admin centre do not appear for users assigned to all security scopes but are not full administrators.
  • Internet-based links to approve or deny user application requests via email fail in ConfigMgr, version 2006.
    • This occurs for internet-based clients with a cloud management gateway (CMG).
    • The administrator will receive an HTTP Error 400 when clicking the email link.
  • The online status listed for devices on the internet connecting via a cloud management gateway (CMG) in the ConfigMgr console may be incorrect.

Prerequisite -Enable SCCM Run Scripts Feature from Intune

Complete the following steps to enable the SCCM Run scripts feature from the Intune Portal.

  • All of the prerequisites for the Tenant are attached.
  • A minimum ConfigMgr version 2006 with KB4580678 – Tenant attach rollup for ConfigMgr 2006 installed.
  • All sites in the hierarchy must meet the minimum ConfigMgr version requirement. And that is SCCM 2006.
  • ConfigMgr clients must be running the latest version of the client. I do NOT think there is any client-side update available for KB4580678. Hence, check whether your client version is the latest one mentioned in the GA of ConfigMgr 2006.
  • The client must run PowerShell version 3.0 or later to run PowerShell scripts.
  • At least one script has already been created and approved in ConfigMgr.
    • Scripts with parameters aren’t supported now and won’t be visible in the Intune Portal (Microsoft Endpoint Manager admin centre).
    • Only already created and approved scripts appear in the admin centre (a.k.a Intune Portal).

NOTE! The permissions for the Tenant are updated. You don’t need to give permissions to Configuration Manager Microservice https://docs.microsoft.com/en-us/mem/configmgr/tenant-attach/client-details#permissions

Permissions Required

The admin user who runs the script should have SCCM (a.k.a. ConfigMgr) Related access cess rights.

CategoryPermissionState
CollectionRun ScriptYes
SiteReadYes
SMS ScriptsCreateYes
SMS ScriptsReadYes
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr – Table 2
  • To run the script from the Microsoft Endpoint Manager admin centre, you need Intune Portal (Admin centre) access rights.
  • The Admin User role for the Configuration Manager Microservice application in the Azure AD portal.
    • Add the role in Azure AD from Enterprise applications > Configuration Manager Microservice > Users and groups > Add user.

Install KB4580678 to Enable the SCCM Run Scripts Feature from Intune

Let’s install the KB from the ConfigMgr console to enable the new feature in the Intune portal. The new feature will allow admins to use the Intune portal (MEM admin centre) to initiate the Run Script without logging into the SCCM console.

The summary of the updated package installation for Configuration Manager 2006 is given in the following post-update installations.

  • Install Update Package Configuration Manager 2006 Hotfix (KB4580678)
  • Prerequisite warnings will be ignored
  • Test a new version of the client in production.
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr - Fig.1
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr – Fig.1

Client-Side UpdateSCCM Run Scripts Feature from Intune

  • There is no client-side update for the KB4580678.
  • The full version of the site server got updated to – 5.00.9012.1028.
  • No update is required for the SCCM console after installing KB4580678.

NOTE! – The site version has not been changed under Site Configuration – Sites. After installing KB4580678, the site version and build number remain the same: 5.00.9012.1000

Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr - Fig.2
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr – Fig.2

Run a Script Uploaded to SCCM via the Intune Portal

Open https://endpoint.microsoft.com with an admin user ID already discovered via SCCM Azure AD User, select Devices, select All Devices, choose a device synced from SCCM via Tenant attach and then view all approved scripts by clicking on Scripts.

  • Click on the Run Scripts button to view all the approved scripts.
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr
Enable SCCM Run Scripts Feature from Intune Portal | ConfigMgr – Fig.1

Resources

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is a Blogger, Speaker, and Local User Group HTMD Community leader. His primary focus is Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion

Join the discussion

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

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read