Corporate wallpaper script re-run in Intune

Abduazim Sobitov 21 Reputation points
2022-02-09T05:10:28.217+00:00

Hi all

In my current company we are using Microsoft Intune for device management. My task was to set up corporate background wallpaper.

I used powershell script, where it downloads the png picture from blob storage and sets it as background. The script is assigned to dynamic group which contains only my laptop. Finally, script worked.

Now question, how do I automate the script, so I will run automatically when I add new device to the dynamic group. So, I don't have to re-run scripts manually every time when device is added.

I hope its all clear for you guys.

Thanks

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,715 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,322 questions
{count} votes

Accepted answer
  1. Lu Dai-MSFT 28,341 Reputation points
    2022-02-09T06:29:40.573+00:00

    @Abduazim Sobitov Thanks for posting in our Q&A.

    For this issue, when the new device is added in the dynamic group and the script is assigned to the dynamic group, the script will run in the new device automatically.

    Powershell scripts run in the following two situation:

    1. When the script is assigned to a device.
    2. If you change the script, upload it, and assign the script to a user or device.

    Hope it will help.


    If the answer is the right solution, 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.


1 additional answer

Sort by: Most helpful
  1. Pavel yannara Mirochnitchenko 11,711 Reputation points
    2022-02-09T06:27:19.087+00:00

    When new device is added to the group, script is run automatically. No need for any additional action.