Oct 12 2023 07:47 AM
Hello everyone,
I'm in need of assistance with the following script I'm currently using: powershell
# Replace the placeholders with your details
$inf_path = ".\driver\KOBxxK__01.inf"
$driver_name = "KONICA MINOLTA Universal V4 PCL"
$driver_path = "C:\Windows\System32\DriverStore\FileRepository\KOBxxK__01.inf"
$printer_name = "Konica 1"
$port_name = “USED MY IP”
$printer_ip_address = “USED MY IP”
# Install the driver using Pnputil
pnputil.exe /add-driver "$inf_path"
# Add the printer driver using Add-PrinterDriver
Add-PrinterDriver -Name "$driver_name" -InfPath "$driver_path"
# Add the printer port using Add-PrinterPort
Add-PrinterPort -Name "$port_name" -PrinterHostAddress "$printer_ip_address"
# Add the printer using Add-Printer
Add-Printer -DriverName "$driver_name" -Name "$printer_name" -PortName "$port_name"
My objective is to remotely install a Konica printer via Intune using PowerShell. However, I've been unable to get this script to function properly. I placed this script in the folder located before the "Driver" folder.
The error
Could someone please assist me with this issue?
Oct 12 2023 08:41 AM
Oct 12 2023 01:54 PM
Oct 13 2023 07:08 AM
This worked if I run the script locally but via intune I get this error:
Any ideas?
Aran
Oct 13 2023 07:19 AM
Oct 13 2023 07:23 AM
Oct 13 2023 10:48 PM
Oct 16 2023 05:05 AM
Oct 16 2023 05:12 AM
Oct 16 2023 05:39 AM
Oct 16 2023 06:02 AM
SolutionOct 16 2023 06:20 AM
Oct 16 2023 11:01 PM
Oct 23 2023 11:44 PM
Oct 23 2023 11:55 PM
Oct 24 2023 12:18 AM
Oct 24 2023 01:08 AM
Apr 18 2024 01:39 PM
@Harm_Veenstra am I the only one who noticed that port which you are using is already in use 😂😂?
Oct 16 2023 06:02 AM
Solution