How to enter the product key in Windows server 2012 R2.

Entering the product key in server 2012 sometimes is fraught with frustration. You can try to enter it via the CMD command prompt with this command. PS C:\Users\Administrator> slmgr -ipk XXXX-XXXX-XXXX-XXXXPS C:\Users\Administrator> slmgr -ipk XXXX-XXXX-XXXX-XXXX and you get an error. The best way is to use this command. PS C:\Users\Administrator> sluiPS C:\Users\Administrator> slui This command … Read more

How to re run a previous command in your history with sudo privileges.

This is how to rerun a previous command with sudo if you forgot the sudo command to elevate privileges. Here I have tried to cat a file and I have forgotten to elevate my privileges with the sudo command. homer@calculate ~ $ cat /etc/shadow cat: /etc/shadow: Permission deniedhomer@calculate ~ $ cat /etc/shadow cat: /etc/shadow: Permission … Read more