Jump to content

ISchiavon

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by ISchiavon

  1. Here is what I use.

    REM Author: ISchiavon
    REM Description: Open a CMD bypassing UAC then logs in to the remote printer then adds printer and enables it.
    ESCAPE
    CONTROL ESCAPE
    DELAY 400
    STRING cmd
    DELAY 400
    MENU
    DELAY 400
    STRING a
    DELAY 600
    LEFTARROW
    ENTER
    DELAY 400
    STRING net use \\10.0.0.1 /u:username password
    ENTER
    DELAY 100
    STRING rundll32 printui.dll,PrintUIEntry /ga /n\\10.0.0.1\Printer
    ENTER
    DELAY 100
    STRING net stop spooler
    ENTER
    DELAY 100
    STRING net start spooler
    ENTER
    DELAY 100
    STRING rundll32 printui.dll,PrintUIEntry /p /n\\10.0.0.1\Printer
    ENTER
    STRING exit
    ENTER
    

×
×
  • Create New...