WMIC Path Win32_Printer Where Name='HP LaserJet 4' Call SetDefaultPrinter IF ERRORLEVEL 1 ( ECHO Failed to make 'HP LaserJet 4' the default printer )