Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Change the Printer Port for a PrinterContent of Change the Printer Port for a Printer.vbsMD5 Hash: 2D572C36EA93D75500CD403119024268 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colPrinters = objWMIService.ExecQuery _ ("Select * From Win32_Printer Where DeviceID='Art Department Printer'") For Each objPrinter in colPrinters objPrinter.PortName = "LPT1:" objPrinter.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |