9 Replies Latest reply on Sep 15, 2017 5:46 AM by Ulf.Naumann

    Error deleting printer - with "Delete printer" command

    DanielA1 Rookie

      The DSM command doesn't seem to work with Windows 10.

      Deleting the printer manually with the DSM domain user works.

       

       

      -> DeletePrinter('BER-PRN-14','','',)/TS

      13:19:56.634 1           nilsPipe: Setting active Server project to 'db:master\3xxx BER-PRN-14'

      13:19:56.634 0           nilsPipe: Initializing project 'db:master\3xxx BER-PRN-14'...

      13:19:56.635 2           nilsPipe: Executing through IPC : DeletePrinter

      13:19:56.636 2           nilsPipe: NPI: -> DeletePrinter('BER-PRN-14','','',)

      13:19:56.772 E           Warning (Module:nilsPipe, Severity:0x03): NPI: Error deleting printer BER-PRN-14

      Access is denied. (0x00000005)

      13:19:56.772 1           nilsPipe: Service var bridge: Setting var _LAST_ERROR_TEXT to NPI: Error deleting printer BER-PRN-14

      Access is denied. (0x00000005)

      13:19:56.773 1           nilsPipe: Service var bridge: Setting var _ERROR_SEVERITY to 3

      13:19:56.773 2           SWMSRT: //------------| Starting Checking if policies should run for the trigger 'On error'. |------------\\

      13:19:56.774 0           SWMSRT: No triggered jobs found

      13:19:56.774 2           SWMSRT: \\------------| Finished Checking if policies should run for the trigger 'On error'. |------------//

      13:19:56.774 1           nilsPipe: Service var bridge: Setting var _LAST_ERROR_TEXT to Error deleting printer BER-PRN-14

      Access is denied. (0x00000005)

      13:19:56.774 1           nilsPipe: Service var bridge: Setting var _ERROR_SEVERITY to 3

       

      The second problem is, that I've an additional printer configuration installed after every reinstall.

      Is there a script template to delete and reinstall Network Printers (without a printserver).

       

      Any ideas?

       

      Regards,

      Daniel