获取打印机名称
wmic printer get name
设置默认打印机
wmic printer where name="打印机名称" call setdefaultprinter
打印测试页
rundll32 printui.dll,PrintUIEntry /k /n "打印机名称"
删除打印机
rundll32 printui.dll,PrintUIEntry /dl /n "打印机名称"
添加打印机
rundll32 printui.dll,PrintUIEntry /if b "打印机名称" /f "驱动程序文件路径" /r "端口名称"