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.



Contact Us

On Key

More Posts

WME Cybersecurity Briefings No. 004
Cyber Security

WME Security Briefing 11 April 2024

Mispadu Trojan Exploits Windows Vulnerability to Target Financial Data Overview The Mispadu banking trojan has intensified its operations as it’s exploiting an already patched Windows SmartScreen flaw. Since its initial identification in 2019, Mispadu has primarily preyed on

Read More »
WME Cybersecurity Briefings No. 003
Cyber Security

WME Security Briefing 29 March 2024

Russian hackers escalating their cyber warfare, deploying TinyTurla-NG to breach European NGOs. Cisco Talos reveals a targeted attack against organizations advocating democracy and supporting Ukraine. With their sophisticated methods, these cyber attackers are bypassing antivirus defenses

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.