How do I leave a note on the desktop of all devices registered with Intune?

Samuel Santos 250 Reputation points
2023-11-01T18:18:44.1+00:00

I need to leave a note on the desktop of all computers registered with Intune. This would be information about the support email and telephone number or the hostname of the computer.

Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
968 questions
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,387 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,313 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 14,390 Reputation points Microsoft Vendor
    2023-11-02T07:39:34.5766667+00:00

    @Samuel Santos,Thanks for posting in Q&A.

    From your description, I know that you want to leave a note on the desktop of all enrolled devices.

    Based on my testing, you can create a file with content via PowerShell and deploy the PowerShell script via Intune.

    Here are the contents of script.

    New-Item -Path "C:\Test" -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."

    • Path means where the file locates.
    • Name means the file name.
    • Value means the content of the file.

    You can follow the steps below to upload the script and deploy it via Intune.

    1.Create a .ps1 file and enter the content of script above.

    2.Go to Intune admin center > Devices > Script > Add Windows 10 and later >Upload .ps1 file and configure settings > Assign groups.

    User's image

    Then the script will work.

    Please try above information. If there is any update, feel free to contact me.

    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.


1 additional answer

Sort by: Most helpful
  1. Samuel Santos 250 Reputation points
    2023-11-06T20:45:10.0133333+00:00

    Hello, I ran the script in Powershell making changes to the fields to test it first on my local computer and if it worked I would replicate it to Intune, but it just created the file, it didn't display any message on the screen when restarting.


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.