Thursday, March 28, 2013

Shutdown a remote windows desktop

If you are working on a remote windows desktop you can not power off the system...
Sounds like a good idea, because the machine you are working on is not under your control. But what if this machine is just in the next room and you know exactly what's going on?

Just create a desktop shortcut with the following command and you can power off windows very easy:

shutdown -s

Wednesday, March 13, 2013

Specify Maven environment on windows powershell

Here is just a smart snippet to specify the maven environment like PermGen or Memory space on windows powershell:
$env:MAVEN_OPTS="-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
Simple but useful ;-)