Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2661
  • Last Modified:

How to edit environment variables without Admin Rights.

How to edit environment variables without Admin Rights.
0
raghu8329
Asked:
raghu8329
1 Solution
 
dbruntonCommented:
From the command line.  Try

set z=myself
set
set z=someone
set

and you'll see that you have played with the environment variables.  However these will NOT keep if you close the shell down.  If you run an application while in the command shell it will use those variables you have placed there.

For example repeat the above commands and at the end put

notepad %z%

and you will see it attempt to create a file called someone.txt
0
 
raghu8329Author Commented:
I my organization developers need to edit the environment variables in the System Properties. We are not not providing admin rights to the employees.  Is there any way changing the Registry or group policy for the user to edit.
0
 
cantorisCommented:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38
Have a look at setx.exe
By default it sets values in the HKCU context which they will have rights to.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
raghu8329Author Commented:
Can u please let me know how to use these tools.
0
 
cantorisCommented:
setx.exe /?    gives you all the info
basically, on the local machine it's  setx.exe <variable name> <variable value>
0
 
johnb6767Commented:
I would look at doing this method using a Machine Startup Script (login script would fail unless they are admins....).....

0
 
raghu8329Author Commented:
The fix is complicated to adress this.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now