question

AbduazimSobitov-4183 avatar image
0 Votes"
AbduazimSobitov-4183 asked yannara commented

Corporate wallpaper script re-run in Intune

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

mem-intune-generalmem-intune-device-configurationsmem-intune-graph
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi! can you share the script for the wallapaper??

0 Votes 0 ·

Hi! can you share the script for the wallapaper??

0 Votes 0 ·
LuDaiMSFT-0289 avatar image
0 Votes"
LuDaiMSFT-0289 answered LuDaiMSFT-0289 commented

@AbduazimSobitov-4183 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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you very much for you answer:)

0 Votes 0 ·
LuDaiMSFT-0289 avatar image LuDaiMSFT-0289 AbduazimSobitov-4183 ·

@AbduazimSobitov-4183 You're welcome. If you have any problem in the future, welcome to post in our Q&A.

Thanks and have a nice day. : )

0 Votes 0 ·
yannara avatar image
0 Votes"
yannara answered AbduazimSobitov-4183 commented

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you very much for you answer. Seems like it worked

0 Votes 0 ·