Intune Powershell script does not run.

Anonymous
2023-10-18T15:27:56.71+00:00

I made a quick Powershell script that I have added to Intune, however after several hours it still says 0 on the overview over the machines it has run on.

User's image

I have restarted the machines several times, I have ensured that the groups are set properly, I deleted the script and added it again but to no luck. Any ideas?

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,748 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,458 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
{count} votes

Accepted answer
  1. Pavel yannara Mirochnitchenko 11,961 Reputation points MVP
    2023-10-18T18:21:43.2766667+00:00

    What are the gui selections in script options, run with user rights, using 64-bit,, signed?

    Unfortunatelly it is well known, that script esecution is very slow in Intune and if you want to make it faster, you would need to create win32 app of the script.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Simon Ren-MSFT 30,676 Reputation points Microsoft Vendor
    2023-10-19T08:42:33.0666667+00:00

    Hi,

    Thank you for posting in Microsoft Q&A forum.

    Agree with @Pavel yannara Mirochnitchenko . It's recommended to configure a custom PowerShell script to create a shortcut for the user and then deploy it as a Win32 app. Here are some step-by-step guide for your reference:

    Creating desktop shortcuts with Intune

    Creating a web page shortcut on the desktop using intune

    How to create a shortcut to a folder with PowerShell and Intune

    Thanks for your time. Have a nice day!

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. Simon Ren-MSFT 30,676 Reputation points Microsoft Vendor
    2023-10-26T01:41:43.23+00:00

    Hi,

    Hope everything goes well. Do you need any further assistance about this issue? If yes, please feel free to let us know, we will do our best to help you.

    If the response is helpful, it's appreciated that you could click "Accept Answer" and upvote it, this will help other users to search for useful information more quickly.

    Thanks for your time.

    Best regards,

    Simon

    0 comments No comments