how do Microsoft Intune PowerShell Detection scripts softwares installed in windows machines

Tadeu Trajano 20 Reputation points
2023-11-30T18:14:58.6666667+00:00

I need to create a Compliance Policy that checks whether the following software is installed: such as Antivirus, VPN, Anydesk.

I did a search, but I can't find something that does this in a single policy.

Can someone help me?

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,233 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 13,965 Reputation points Microsoft Vendor
    2023-12-01T05:24:53.63+00:00

    @Tadeu Trajano,Thanks for posting in Q&A. From your description, I know that you want to determine device compliance based on whether specific application is installed.

    Based on my research, you can configure Custom Compliance policy to achieve it. Let's take Microsoft Edge as example, here are some steps you can refer.

    1.Create a discovery script and upload it to Intune.

    User's image

    User's image

    #Look for Microsoft Edge $InstalledSoftware = Get-ChildItem "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" if ($InstalledSoftware -like "Microsoft Edge") { $edge = "Detected" } else { $edge = "Not Detected" }

    $hash = @{ Microsoft Edge = $edge } return $hash | ConvertTo-Json -Compress

    2.Create a Json file and upload it to Intune. { "Rules":[ { "SettingName":"Microsoft Edge", "Operator":"IsEquals", "DataType":"String", "Operand":"Detected", "MoreInfoUrl":https://andrewstaylor.com, "RemediationStrings":[ { "Language": "en_US", "Title": " Application Detected", "Description": "Edge has been detected on your device." } ] } ] }

    3.Assign to user Group and check it after a few minutes.

    You can replace Microsoft Edge to the apps you want.

    Hope this can be helpful.

    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.


0 additional answers

Sort by: Most helpful

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.