Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete All Large Print JobsContent of Delete All Large Print Jobs.vbsMD5 Hash: 978E37782F3A5FBD05C226FA8FAED791 |
||
' Description: Deletes all print jobs larger than 1 megabyte.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colPrintJobs = objWMIService.ExecQuery _ ("Select * from Win32_PrintJob Where Size > 1000000") For Each objPrintJob in colPrintJobs objPrintJob.Delete_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |