Solved

How to edit environment variables without Admin Rights.

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

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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

792 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