Update LexmarkPrinterInstall.ps1
This commit is contained in:
@@ -18,7 +18,7 @@ $PrinterName = Read-Host -Prompt "Enter the custom name for this printer (e.g.,
|
|||||||
$IPAddress = $IPAddress.Trim()
|
$IPAddress = $IPAddress.Trim()
|
||||||
$PrinterName = $PrinterName.Trim()
|
$PrinterName = $PrinterName.Trim()
|
||||||
$PortName = "IP_$IPAddress"
|
$PortName = "IP_$IPAddress"
|
||||||
Write-Host "`nStarting installation for '$PrinterName'..." -ForegroundColor Cyan
|
Write-Host "Starting installation for '$PrinterName'..." -ForegroundColor Cyan
|
||||||
Write-Host "Registering driver: $DriverName..." -ForegroundColor Yellow
|
Write-Host "Registering driver: $DriverName..." -ForegroundColor Yellow
|
||||||
try {
|
try {
|
||||||
Add-PrinterDriver -Name $DriverName -InfPath $InfPath -ErrorAction Stop
|
Add-PrinterDriver -Name $DriverName -InfPath $InfPath -ErrorAction Stop
|
||||||
|
|||||||
Reference in New Issue
Block a user