Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Modify Printer PriorityContent of Modify Printer Priority.vbsMD5 Hash: A1DA5C7FCBD25246C3632E135F469B6D |
||
' Description: Sets the priority for a printer to 2.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrinters = objWMIService.ExecQuery _ ("Select * From Win32_Printer where DeviceID = 'ArtDepartmentPrinter' ") For Each objPrinter in colPrinters objPrinter.Priority = 2 objPrinter.Put_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |