![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Use a Script to Rename a Printer
|
||
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 :: |