Tuesday, December 15, 2015

Always run Windows command prompt as administrator

If I'm using command prompt on a Windows machine, there is a 99% chance that whatever I'm using it for needs to be run as administrator. Which frustrates me, since I need to right click the program each time and run it specially as an administrator. So instead, here's how to fix that on a 2012r2 machine. It will still prompt for UAC, unless you shut UAC off completely, but I would never do that.

Search for cmd, right click it, and click "Open file location"


Mine already took me to the shortcut version. So, right click it, click Properties, click the Shortcut tab, click Advanced in the lower right, and then check the box "Run as administrator". Click Ok, Apply. Now just toss that shortcut wherever you want, and it'll always run as administrator when you use it. I right click mine and put it in the taskbar, for quick access.



If yours doesn't take you to a shortcut version, it might take you right to the actual file in C:\Windows\system32. In that case, right click the file, and click Create Shortcut. It will prompt you to put the shortcut on your desktop. Click yes. When you find the shortcut on your desktop, simply follow the steps from above.






OS X 10.11 - Corrupted MAC on input.

If you frequently SSH into network management devices, such as routers and switches, you may notice that in 10.11, it doesn't work anymore. The error message received is: Corrupted MAC on input. ssh_packet_read: message authentication code incorrect.

To get around this, you just need to edit your ssh_config. I'll use nano in this example. 

In terminal, issue:       sudo nano /etc/ssh/ssh_config

Enter your password and hit enter

Scroll down until you see this line: 
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160

Delete the pound sign, which will un-comment that line and make it active.

Hold Control and hit X to exit, hit Y to save, and Enter to apply. 

That should do it!