Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Use a Script to Rename a PrinterContent of Use a Script to Rename a Printer.vbsMD5 Hash: 21E040D077D7868D8AE5B017DB9F9E33 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colPrinters = objWMIService.ExecQuery _ ("Select * From Win32_Printer Where DeviceID = 'HP'") For Each objPrinter in colPrinters objPrinter.RenamePrinter("ArtDepartmentPrinter") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |