Add-PrinterPort Microsoft 365 解决方案和体系结构 应用和服务 培训 资源 免费帐户 版本 Windows 11 and Windows Server 2022 PowerShell NetworkConnectivityStatus NetworkController NetworkControllerDiagnostics NetworkLoadBalancingClusters NetworkSwitchManager NetworkTransition...
[ <CommonParameters>] Parameter Set: tcp Add-PrinterPort [-Name] <String> [-PrinterHostAddress] <String> [-AsJob] [-CimSession <CimSession> ] [-ComputerName <String> ] [-PortNumber <UInt32> ] [-SNMP <UInt32> ] [-SNMPCommunity <String> ] [-ThrottleLimit <Int32> ] [-Confirm] [...
# 设置打印机的 IP 地址和打印机名称$printerIpAddress="192.168.1.100"# 替换为实际的打印机 IP 地址$printerName="MyNetworkPrinter"# 替换为打印机名称# 创建 TCP/IP 端口$portName="$printerIpAddressPort"# 为端口命名$port=Get-PrinterPort-Name$portName-ErrorActionSilentlyContinueif(-not$port) {# 如果...
# 定义网络打印机的名称和其对应的IP地址或主机名$printers=@(@{ Name ="Printer1"; Port ="192.168.1.10"; Driver ="HP Universal Printing PCL 6"},@{ Name ="Printer2"; Port ="192.168.1.11"; Driver ="Brother HL-L8360CDW"},@{ Name ="Printer3"; Port ="192.168.1.12"; Driver ="Canon ...
Adds a Windows-based printer connection to your computer system.Copy Windows NT/2000: object.AddWindowsPrinterConnection( strPrinterPath ) Windows 9x/Me: object.AddWindowsPrinterConnection( strPrinterPath, strDriverName[,strPort] ) Arguments
To add a printer from the print server to your computer, you need to create a printer port. Before you create the print server port, make sure that the network configuration is complete for your print server. For more information about how to configure your print server, navigate to the fo...
Faulting package-relative application ID: microsoft.windows.immersivecontrolpanel Hang type: Cross-process My Computer iko22 Well-known member Power User VIP Local time 10:32 PM Posts 1,128 Location South West England OS Windows 11 Dec 29, 2021 #2 1 Try running the Printer Troublesho...
Windows 2000 Specified Port cannot be added. The port already exists. More Information The TCP/IP printer port address you are attempting to create was already created, possibly from a previously created and then deleted printer. The IP address remains in the registry to simplify...
Usage: prnport [-adlgt?] [-r port][-s server][-u user name][-w password] [-o raw|lpr][-h host address][-q queue][-n number] [-me | -md ][-i SNMP index][-y community][-2e | -2d] Arguments: -a - add a port -d - delete the specified port -...
Unlike the AddPrinterConnection method, this method allows you to create a printer connection without directing it to a specific port, such as LPT1. If the connection fails, an error is thrown. In Windows 9x/Me, the printer driver must already be installed on the machine for the AddWindows...