Microsoft Custom Compliance Policy says "Not applicable"

BrightLight 0 Reputation points
2023-04-14T06:57:55.9033333+00:00

Hello everyone, I have a custom compliance policy on my Intune. The policy basically checks if the antivirus software is installed (looking out for certain value in the registry). I setup a Windows 10 VM, enrolled into Intune without the antivirus installed (So it wouldn't show as compliant I assume). However when I went to check the Windows devices, it tells me that my VM is compliant (which obviously isn't, because the AV isn't installed) The user account login into the VM have intune license. User's image

Then I went to the custom compliance policy to check, and it tells me that they are not applicable: User's image

User's image

Its confusing. Is there something I should take note of? Because I have been waiting and trying for awhile but the policy just doesn't seem to kick into the device. And Intune still mark it as compliant.

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,570 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,791 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Crystal-MSFT 53,091 Reputation points Microsoft External Staff
    2023-04-17T01:30:09.14+00:00

    @BrightLight, Thanks for posting in Q&A. From your description, I know we have assigned a custom compliance policy, but it is not applicable to VM. And the device shows compliant although the AV is not installed.

    To check on our issue, I think we need to find out why the policy is not applicable to the device. To clarify this, please provide the following information:

    1. How did we set the discovery script?
    2. How did we configure the "Upload and validate the JSON file with your custom compliance policy"?
    3. Please get a screen shot of the Properties of the custom compliance policy.
    4. Under the custom compliance policy, please get a screen shot the "Per setting status" to get more information.

    Please check the above information and if there's any update, feel free to let us know.


    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.


  2. Omar Osman 1 Reputation point
    2024-02-27T06:53:08.77+00:00

    Please assist since i have the same issue. it showing not applicable Below are my compliant settings. Powershell

    Define the expected version of Symantec Endpoint Protection

    $ExpectedVersion = "14.3.9707.7000"

    Check if Symantec Endpoint Protection is installed and get its version

    $SEPInstalled = Get-ItemProperty -Path "HKLM:\SOFTWARE\Symantec\Symantec Endpoint Protection\SMC" -Name ProductVersion -ErrorAction SilentlyContinue

    Initialize an empty hashtable to store the result

    $result = @{} if ($SEPInstalled -ne $null) { $ActualVersion = $SEPInstalled.ProductVersion # Check if the actual version matches the expected version if ($ActualVersion -eq $ExpectedVersion) { $result["SymantecEndpointProtectionInstalled"] = $true $result["SymantecEndpointProtectionVersion"] = $ActualVersion } else { $result["SymantecEndpointProtectionInstalled"] = $false $result["SymantecEndpointProtectionVersion"] = $ActualVersion } } else { $result["SymantecEndpointProtectionInstalled"] = $false $result["SymantecEndpointProtectionVersion"] = "Not Installed" }

    Convert the hashtable to JSON format and return

    return $result | ConvertTo-Json -Compress Json

    { "Rules":[ { "SettingName":"SymantecEndpointProtectionInstalled", "Operator":"IsEquals", "DataType":"Boolean", "Operand":"true", "MoreInfoUrl":"https://bing.com", "RemediationStrings":[ { "Language":"en_US", "Title":"Symantec is installed on the device.", "Description": "Compliant" } ] }, { "SettingName":"SymantecEndpointProtectionVersion", "Operator":"GreaterEquals", "DataType":"Version", "Operand":"14.3.9707.7000", "MoreInfoUrl":"https://bing.com", "RemediationStrings":[ { "Language": "en_US", "Title": "Required version of Symantec is installed.", "Description": "compliant" } ] } ] }

    0 comments No comments

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.