There are not. The process just seems to be idle
Powershell script not deploying from Intune
I have a Powershell script that I am trying to deploy via Intune. The script is a relatively simple script that monitors a folder on the targeted device and clears a cached credential file. Running the script locally on a machine, it works. When I try to deploy the script to a test group in Intune, it doesn't appear that it even tries to deploy. I don't receive an failures or anything like that. The overview suggest that it's not doing anything.
I have the following settings configured
Run this script using the logged on credentials
No
Enforce script signature check
No
Run script in 64 bit PowerShell Host
Yes
Assignments
Does anyone have an idea on possibly why this isn't deploying and/of how to correct it? Furthermore, once the script does deploy, where is the script actually stored on the computer? For reference, in case it matters, the targeted test device is a Windows 11 machine.
Microsoft Security Intune Configuration
3 answers
Sort by: Most helpful
-
-
Crystal-MSFT 53,981 Reputation points Microsoft External Staff
2022-10-07T02:25:22.743+00:00 @Bryan George , In fact, PowerShell script deployed via Intune is managed and excuted by Intune management Extension agent.
For our issue, please firstly check if the Microsoft Intune Management extension service is running. Then try to restart the device or this service to get the PowerShell script.
In General, the agent will start to download and execute the assigned PowerShell script under "C:\Program Files (x86)\Microsoft Intune Managment Extension\Policies\Script". After successful execution the script and results are cleaned up and nothing is left on the device. Corresponding registry entries for the assigned scripts and execution results are here: HKLM\SOFTWARE\Microsoft\IntuneManagementExtension\Policies\UserGUID\ScriptGUID,
Here is a link with more details about the troubleshooting for your reference:
https://oliverkieselbach.com/2017/11/29/deep-dive-microsoft-intune-management-extension-powershell-scripts/
Note: non-Microsoft link, just for the reference.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. -
Pavel yannara Mirochnitchenko 13,331 Reputation points MVP
2022-10-11T06:13:14.773+00:00 Executing Powershell in Intune is much slower than applying policies or apps. It might take many hours before powershell service will kick on at client side.