Public/Import-CertificateCheckingToIntune.ps1

<#
.SYNOPSIS
    Provides Certificate Checking functionality information.
.DESCRIPTION
    Certificate Checking is an interactive feature for enumerating and managing certificates. This function provides guidance.
.EXAMPLE
    Import-CertificateCheckingToIntune
#>

function Import-CertificateCheckingToIntune {
    [CmdletBinding()]
    param(
        [switch]$DryRun
    )

    Write-Host "`nCertificate Checking Information`n" -ForegroundColor Cyan

    if ($DryRun) {
        Write-Host "[DryRun] Certificate Checking is an interactive feature" -ForegroundColor Cyan
        return
    }

    Write-Host "Certificate Checking is an interactive feature for:" -ForegroundColor Yellow
    Write-Host " - Enumerating certificates across all stores (Local Machine and Current User)" -ForegroundColor White
    Write-Host " - Identifying certificates not rooted to Microsoft's Trusted Roots list" -ForegroundColor White
    Write-Host " - Sorting, searching, and removing certificates as needed" -ForegroundColor White
    Write-Host "`nFor Intune deployment:" -ForegroundColor Yellow
    Write-Host " - Use Intune Scripts with PowerShell to enumerate and report certificates" -ForegroundColor White
    Write-Host " - Use Compliance Policies to require specific certificates" -ForegroundColor White
    Write-Host " - Use Device Configuration to manage certificate stores" -ForegroundColor White
    Write-Host "`nCertificate checking is included in the Certificate baseline component for basic validation." -ForegroundColor Gray
}