SETPRINTER — Change a printer’s status.

Syntax:
SETPRINTER printername ​/OF ​/ON ​/P ​/PU ​/R

/OFtake the printer offline
/ONbring the printer back online
/Ppause the printer
/PUpurge the print queue
/Rrestart a paused printer

Only the first letter or two of the options are checked. You can spell options out for clarity: /OFFLINE, /ONLINE, /PAUSE, and so on.

Quote the printername if it contains spaces. If you do not specify a printername, the current user’s default printer will be assumed.