Weekly Tip 5

Set machine-level environment variables from the command line in Windows 7 and above:

setx <variable> <value> /m

Example: setx JAVA_HOME “C:\Program Files\Java\jre1.8.0_45” /m

Hint: “/m” must be last, and is what adds it at the machine level.

Append path to the PATH variable:

setx PATH “%PATH%;C:\Program Files\Java\jre1.8.0_45” /m

Note that the new environment variables take affect for the NEXT command session, not the current one.

Share:

Facebook
Twitter
LinkedIn
Picture of Matt Tinney

Matt Tinney

Professional IT executive & business leader having decades of experience with Microsoft technologies delivering modern-day cloud & security solutions.

Contact Us

=
On Key

More Posts

WME Cybersecurity Briefings No. 028
Cyber Security

WME Security Briefing 27 September 2024

DragonRank SEO Manipulation Campaign Targeting IIS Servers Across Asia and Europe Overview A cyber espionage campaign is targeting IIS servers in several countries across Asia and Europe. The DragonRank campaign emanates from a simplified Chinese-speaking actor and specializes

Click Here to Read Full Article »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=