Announcement

Collapse
No announcement yet.

printing jobs

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • printing jobs

    we have attached printer with our local computer, we want remove all queued printing jobs at the time logoff so that when we log in next time , there is no print request in , actually printer continue to print prevoius printing request, and we want to stop it at logon time.

  • #2
    Re: printing jobs

    You can write logoff script like:

    file name: logoff.bat

    net stop "Print Spooler"
    net start "Print Spooler"

    This will drop all the print jobs while logoff.

    You can put this policy under local user policy -> logoff scripts.
    You can edit the local user policy via gpedit.msc command

    Or the following script:

    http://www.microsoft.com/technet/scr...5/hey0428.mspx

    Regards,

    Yuval
    Best Regards,

    Yuval Sinay

    LinkedIn: https://www.linkedin.com/in/yuval14, Blog: http://blogs.microsoft.co.il/blogs/yuval14

    Comment


    • #3
      Re: printing jobs

      What abt this script code:

      strComputer = "."
      Set objWMIService = GetObject("winmgmts:" _
      & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

      Set colInstalledPrinters = objWMIService.ExecQuery _
      ("Select * from Win32_Printer Where Name = 'HP QuietJet'")

      For Each objPrinter in colInstalledPrinters
      objPrinter.CancelAllJobs()
      Next


      if i have computer name " ws11" and same printer name " ws11".How can i use this script.plz modify it ?

      2nd how can i scan those computer which are attached to the printers in my LAN?
      Last edited by alitoday; 18th October 2005, 06:07.

      Comment

      Working...
      X