Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Transfer Print Jobs to a Different Print QueueContent of Transfer Print Jobs to a Different Print Queue.vbsMD5 Hash: CE840D91AF4DD009AECB7F3F481847A9 |
||
' Description: Changes the TCP/IP printer port for a logical printer, which has the net effect of transferring existing print jobs to the new printer port, and thus to a different printer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objPrinter = objWMIService.Get _ ("Win32_Printer.DeviceID='ArtDepartmentPrinter'") objPrinter.PortName = "IP_192.168.1.10" objPrinter.Put_ | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |