Sometimes we want to print a file and suddenly, Windows shows us that our printer is "offline". We check the printer and everything is perfect. The Printer is on and connected, but Windows says otherwise.
Well, we can try to restart our Printer Spooler and see if it goes "Online" again and print the goddamn file.
We can do this through Windows GUI or from the command line.

Here's how we can do it from the command line.

First of all, we need to open the Windows PowerShell or the Windows Command Prompt as Administrator. To do that, we need to press Windows Key + X or press right click on the Start Menu and select the option " Windows PowerShell (Admin) " or "Command Prompt (Admin)".

With the Command line open, we can start working with some commands and see if the printer goes "Online" again as I said before.

STOPPING PRINTER SPOOLER
net stop spooler

STARTING PRINTER SPOOLER
net start spooler

I've attached 1 example batch file.

Download Stop and Start Printer Spooler.7z

Feel free to email me and make any suggestions.