GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

Keep Printed Documents

Home Forums Scripting Windows Script Host Keep Printed Documents

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    Elawady
    Member
    #155343

    Hay , i wish this Post find you good
    i have a little problem that i want to save printed documents
    i use this script

    strComputer = “.”
    Set objWMIService = GetObject(“winmgmts:\” & strComputer & “rootcimv2”)

    Set colPrinters = objWMIService.ExecQuery(“Select * From Win32_Printer”)

    For Each objPrinter in colPrinters
    objPrinter.KeepPrintedJobs = true

    objPrinter.Put_

    objPrinter.RawOnly = true
    Next

    but still have one problem that some printer driver dose not work and gives me a corrupted .SPL file
    by the way all workstation windows Xp AD is 2003
    any other solution to keep printed documents
    Thansk
    Thanks

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.