echo Off :: ManageEngine Desktop Central Agent :: This bat file is used to set the given printer as the default set PrinterName="%1" rundll32 printui.dll,PrintUIEntry /y /n %PrinterName% :eof ::