How to Activate/Deactivate Windows from command line.

Sometimes Windows has problem with activation. We can  easy solve this problem from command line.

Activation Windows from Command Line:

Find CMD and “Run as administrator”

Type:  slmgr -ipk your-mak-key-here

If everything went well you will see this windows

Windows Activation Success

Type:  slmgr -ato

Activation Windows

 

Deactivation Windows from Command Line:

Find CMD and “Run as administrator”.

Type: slmgr -upk

If everything went well you will see this window.

Unninstalled product key

Now your Windows installation is fully genuine.

How to Cancel or Delete a Stuck Print Job in the Windows

Problem Stuck Job Print.

Probably everyone who has printer experienced problem with stuck documents in queue. This is my solution how to fix this problem.

Solution1:

  1. Open Services.
  2. Find and stop Service Print Spooler.
  3. Open RUN and past %windir%\System32\spool\PRINTERS
  4. Delete all files in this folder.
  5. Open Services and start Service Print Spooler.
  6. Enjoy your printing.

Solution2:

Also which I strongly recommended you can use simple script which can do it for you automatically.

  1. Open Notepad.
  2. Copy text bellow.
    @echo off
    echo Cleaning the the print spooler
    net stop spooler
    echo Removing documents in the print queue
    del /q /f /s "%systemroot%\system32\spool\PRINTERS\*.*"
    net start spooler
    echo All DONE!!
    pause
  3. Save the file and give good easy name like clean_printer_spooler.bat
  4. Right click on script and “Run as administrator”
  5. Save your script in save place and use always when you have a problem.