Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete a PrinterContent of Delete a Printer.vbsMD5 Hash: 0010B520FEC4E026554E00CCBADAEFBC |
||
' Description: Deletes a printer named ScriptedPrinter.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery _ ("Select * from Win32_Printer where DeviceID = 'ScriptedPrinter'") For Each objPrinter in colInstalledPrinters objPrinter.Delete_ Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |