Skip to content

Added statement to catch newer certificate connector #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion CertificationAuthority/Validate-NDESConfiguration.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


<#

.SYNOPSIS
Expand Down Expand Up @@ -1358,6 +1358,20 @@ Log-ScriptEvent $LogFilePath "Checking Intune Connector is installed" NDES_Valid
if ($IntuneConnector = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | ? {$_.DisplayName -eq "Microsoft Intune Connector"}){

Write-Host "Success: " -ForegroundColor Green -NoNewline
Write-Host "$($IntuneConnector.DisplayName) was installed on " -NoNewline
Write-Host "$($IntuneConnector.InstallDate) " -ForegroundColor Cyan -NoNewline
write-host "and is version " -NoNewline
Write-Host "$($IntuneConnector.DisplayVersion)" -ForegroundColor Cyan
write-warning "This version of the Intune certificate connector has been replaced by the Certificate Connector for Microsoft Intune"
write-warning "URL: https://learn.microsoft.com/en-us/mem/intune/protect/certificate-connector-overview"
Write-host
Log-ScriptEvent $LogFilePath "ConnectorVersion:$IntuneConnector" NDES_Validation 1

}

elseif ($IntuneConnector = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | ? {$_.DisplayName -eq "Certificate Connector for Microsoft Intune"}){

Write-Host "Success: " -ForegroundColor Green -NoNewline
Write-Host "$($IntuneConnector.DisplayName) was installed on " -NoNewline
Write-Host "$($IntuneConnector.InstallDate) " -ForegroundColor Cyan -NoNewline
write-host "and is version " -NoNewline
Expand Down