To install the driver in DriverStore, you can use: The PnPUtil.exe utility. The format is pnputil.exe -i -a C: \ Distr \ HP-pcl6-x64 \ hpcu118u.inf (installs a specific printer driver) or pnputil.exe -i -a C: \ Distr \ HP-pcl6-x64 \ * .inf (installs all the drivers...
2. Install printer drivers with PowerShell Now that we’ve added our driver package to the Driver Store, we’re ready to install it. First, we need to find the exact name of the driver, which is located in the INF file. Open the INF file, locate the driver name, and save the name...
$printerName="PrinterName"$driverPath="C:\Path\To\Driver\Inf\File.inf"# Retrieve the printer object$printer=Get-WmiObject-Query"SELECT * FROM Win32_Printer WHERE Name = '$printerName'"# Install the driver$driver=Get-WmiObject-Query"SELECT * FROM Win32_PrinterDriver WHERE INFName = '$($d...
您可以使用 PowerShell 從 WSH 使用 WMI 和WScript.NetworkCOM 物件來管理印表機。 列出印表機連線 列出電腦上安裝的印表機最簡單的方式是使用 WMIWin32_Printer類別: PowerShell Get-CimInstance-ClassWin32_Printer 您也可以使用通常用於 WSH 命令稿的 WScript.NetworkCOM 物件來列出印表機: ...
可以通过 PowerShell 使用 WMI 和 WSH 中的 WScript.Network COM 对象来管理打印机。 列出打印机连接 列出计算机上安装的打印机的最简单方法是使用 WMIWin32_Printer类: PowerShell Get-CimInstance-ClassWin32_Printer 此外,还可以使用通常在 WSH 脚本中使用的 WScript.Network COM 对象列出打印机: ...
然后使用以下命令将其设为默认值:
/in add network printer connection /ip install printer using network printer installation wizard /j[provider] print provider name /k print test page to specified printer, cannot be combined with command when installing a printer /l[path] printer driver source path ...
With PowerShell, you can automate common printer and printer driver management tasks in Windows. This guide explains how to create, delete, or share a printer from the PowerShell console; set a default printer; map a network printer; install or remove printer drivers; and manage local ports ...
Are you deploying the Prints via application or package? If it is application, we should set "install for user" in the deployment type; If it is a package, we should set "run with user's rights" in program properties. Then they would run in the user context and check the results. ...
当然随着微软技术的快速发展,到了目前比较流行的Win10操作系统,默认采用的就是PowerShell命令行交互工具...