Weekly Tip 10

Set environment variable from PowerShell:

[environment]::SetEnvironmentVariable(“<variable name>”,“variable value”,“Machine”)

Ex: [environment]::SetEnvironmentVariable(“JAVA_HOME”,“C:\Program Files (x86)\Java”,“Machine”)

This example sets a system wide variable. Replacing “Machine” with “User” will set a variable for the current user.

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.

=