$PathIntune = "$Env:Programfiles\Intune"

$PackageName = "Printer"
$PrinterName = "Xerox Versalink C7025 - Vznohradská"

Start-Transcript -Path "$PathIntune\Log\$PackageName-install.log" -Force

$PrinterExist = Get-Printer -Name $PrinterName -ErrorAction SilentlyContinue
if ($PrinterExist) {
    Write-Output "Found it!"
}
0

Stop-Transcript
