This commit is contained in:
jonatanrek committed 2025-02-05 18:45:52 +01:00
1 parent 01137f3cb8
commit 8da045562c
65 files changed
+13163 -12

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
$PathIntune = "$Env:Programfiles\Intune"
$PackageName = "Printer"
$PrinterName = "Xerox Versalink C7025 - Vznohradská"
Start-Transcript -Path "$PathIntune\Log\$PackageName-install.log" -Force
Try {
$PrinterExist = Get-Printer -Name $PrinterName -ErrorAction SilentlyContinue
if ($PrinterExist) {
Remove-Printer -Name $PrinterName -Confirm:$false
}
}
Catch {
Write-Warning "Error removing Printer"
Write-Warning "$($_.Exception.Message)"
}
0
Stop-Transcript