Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to edit environment variables without Admin Rights.

Posted on 2010-11-17
Medium Priority
Last Modified: 2012-05-10
How to edit environment variables without Admin Rights.
Question by:raghu8329
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 49

Expert Comment

ID: 34160409
From the command line.  Try

set z=myself
set z=someone

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

Author Comment

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.
LVL 16

Expert Comment

ID: 34168240
Have a look at setx.exe
By default it sets values in the HKCU context which they will have rights to.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

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

Expert Comment

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

Accepted Solution

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


Author Closing Comment

ID: 34279920
The fix is complicated to adress this.

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

730 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