Solved

How to edit environment variables without Admin Rights.

Posted on 2010-11-17
7
1,791 Views
Last Modified: 2012-05-10
How to edit environment variables without Admin Rights.
0
Comment
Question by:raghu8329
7 Comments
 
LVL 47

Expert Comment

by:dbrunton
ID: 34160409
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
 

Author Comment

by:raghu8329
ID: 34160857
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
 
LVL 16

Expert Comment

by:cantoris
ID: 34168240
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:raghu8329
ID: 34170057
Can u please let me know how to use these tools.
0
 
LVL 16

Expert Comment

by:cantoris
ID: 34171044
setx.exe /?    gives you all the info
basically, on the local machine it's  setx.exe <variable name> <variable value>
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 125 total points
ID: 34174642
I would look at doing this method using a Machine Startup Script (login script would fail unless they are admins....).....

0
 

Author Closing Comment

by:raghu8329
ID: 34279920
The fix is complicated to adress this.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now