How to allow intune to run certain powershell scripts with the ApplicationLaunchRestrictions/IntuneEdu/EXE/Policy

Terry Conners 41 Reputation points
2023-01-18T13:40:36.09+00:00

How would I allow intune to run powershell scripts from intune "Devices|Scripts" with the ApplicationLaunchRestrictions/IntuneEdu/EXE/Policy enabled?

Would signing the scripts do the trick? My Script is just moving the taskbar left.

I have tried making a win32 app out of it but I think the HKLU.... reg key location is an issue as well. Going to try the menu import export script as well.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,302 questions
0 comments No comments
{count} votes

Accepted answer
  1. Crystal-MSFT 50,496 Reputation points Microsoft Vendor
    2023-01-19T01:43:26.0966667+00:00

    @Terry Conners Thanks for posting in Q&A. From your description, it seems we have applocker to block PowerShell. And want to deploy script to these devices via Intune. If there's any misunderstanding, feel free to let us know.

    In General, when the PowerShell script deployed via Intune, Microsoft Intune management Extension service checks and find the script. The script is downloaded to local and run. If PowerShell is blocked, I think it will fail. The is controlled by the device side. Intune can't change it.

    For win32 app deployed via Intune. To ensure it can work. Firstly, we will manually install it on device side to confirm. If it can install successfully without any user interaction, then we can try to deploy it via Intune. If the manual install is failed, then it can't deploy via Intune. As a note, if the app is installed under system account, you can use PxExec tool to install it under system account:

    https://learn.microsoft.com/en-us/sysinternals/downloads/psexec

    Hope it can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.