Files
Intune/intune/Externally Sourced Remediations/DeviceConfiguration/Get-OutlookTemplate/Detect_OutlookTemplate.ps1
2025-05-19 15:19:36 -04:00

9 lines
321 B
PowerShell

# Detection Script (Detect_OutlookTemplate.ps1)
$TemplatePath = "$env:APPDATA\Microsoft\Templates\NormalEmail.dotm"
if (Test-Path -Path $TemplatePath) {
Write-Host "NormalEmail.dotm template exists: $TemplatePath"
exit 0
} else {
Write-Host "NormalEmail.dotm template not found: $TemplatePath"
exit 1
}