Deploy Direct Printing Queues via Intune Win32 App

if exist %SystemRoot%\System32\pnputil.exe (
set "SystemPath=%SystemRoot%\System32"
) else if exist %SystemRoot%\Sysnative\pnputil.exe (
set "SystemPath=%SystemRoot%\Sysnative"
) else (
echo ERROR: Cannot find pnputil.exe to install the driver.
echo/
pause
goto :EOF
)
%SystemPath%\pnputil.exe -i -a "Kx81_UPD\en\64bit\OEMSETUP.inf"

powershell.exe -command "Add-PrinterDriver -Name 'Generic 65C-0iSeriesPCL'"
powershell.exe -command "Get-PrinterDriver"


powershell.exe -command "Add-PrinterPort -Name 'IP_192.168.22.41' -PrinterHostAddress '192.168.22.41'"
timeout /t 10
powershell.exe -command "Add-Printer -Name 'Perth Printer' -PortName IP_192.168.22.41 -DriverName 'Generic 65C-0iSeriesPCL'"

powershell.exe -command "Set-PrintConfiguration -PrinterName 'Perth Printer' -PaperSize A4 -Color $false -DuplexingMode TwoSidedLongEdge"
Remove-Printer -Name "Printer_name"
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...