Set-PrinterProperty -Name "Printer Name" -PropertyName "Property" -Value "New Value" 列出可用的打印机驱动程序: powershellCopy Code Get-PrinterDriver 列出打印机端口: powershellCopy Code Get-PrinterPort 设置打印机端口: powershell
Get-PrintJob -PrinterName "你的打印机名称" | Where-Object ID -eq 打印作业ID | Remove-PrintJob 3. 配置打印机 可以使用命令行工具添加、删除或配置打印机。 使用PowerShell 添加打印机: Copy Code Add-Printer -Name "打印机名称" -DriverName "驱动名称" -PortName "端口名称" 删除打印机: Copy Code...
问使用Powershell添加打印机EN在桌面下方找到系统偏好设置选项 然后选择打印机与扫描 单击左下角添加...
Get-Printer 代码语言:txt 复制 这将列出所有已安装的打印机及其相关信息,包括打印机名称(Name)和驱动程序名称(DriverName)等。 选择目标打印机:根据打印机列表中的打印机名称,选择要更改纸盘设置的目标打印机。 更改纸盘设置:使用以下命令来更改打印机纸盘设置: 代码语言:powershell 复制 Set-PrinterProperty -Name...
FunctionAdd-PrinterDriver1.1PrintManagement FunctionAdd-PrinterPort1.1PrintManagement FunctionAdd-StorageFaultDomain2.0.0.0Storage FunctionAdd-TargetPortToMaskingSet2.0.0.0Storage FunctionAdd-VirtualDiskToMaskingSet2.0.0.0Storage FunctionAdd-VpnConnection2.0.0.0VpnClient ...
Add-Printer -ComputerName $ComputerName -Name $PrinterName -DriverName $DriverName -Shared -ShareName $ShareName -PortName $PortName Set-PrintConfiguration -ComputerName $ComputerName -PrinterName $PrinterName -PaperSize A4 当然,你要运⾏它,得确保调整变量 $IPAddress 指向真实存在的打印机地址。把$...
Win32_SystemDriver, // 驱动程序 Win32_DiskPartition, // 磁盘分区 Win32_LogicalDisk, // 逻辑磁盘 Win32_LogicalDiskToPartition, // 逻辑磁盘所在分区及始末位置。 Win32_LogicalMemoryConfiguration, // 逻辑内存配置 Win32_PageFile, // 系统页文件信息 Win32_PageFileSetting, // 页文件设置 Win32_...
Add-Printer -Name "Printer1" 2. -DriverName参数: -该参数用于指定与打印机关联的驱动程序的名称。 -驱动程序是打印机与计算机之间通信的重要组成部分。 -例如,下面的命令将名为"Printer1"的打印机与名为"Driver1"的驱动程序关联起来: Add-Printer -Name "Printer1" -DriverName "Driver1" 3. -PortName参...
$drivers=Import-Csv.\Drivers.csv-Delimiter','foreach($driverin$drivers){Remove-PrinterDriver-Name$driver.name-Confirm:$falseStart-Sleep-Seconds 5 C:\Windows\Sysnative\pnputil.exe-d$driver.Path}remove-Item-Path c:\programdata\customer\Printers-Recurse-Force:$true-Confirm:$false ...
It will not add if you use add-printerdriver and supply the wrong driver name.Use Windows to add the driver (from the print server options, add, browse to the driver, etc.) Then check the name of the driver that it shows you, remove the driver first, and us...