How to edit environment variables without Admin Rights.

Posted on 2010-11-17
Last Modified: 2012-05-10
How to edit environment variables without Admin Rights.
Question by:raghu8329
LVL 48

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


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 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....).....


Author Closing Comment

ID: 34279920
The fix is complicated to adress this.

Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running VB6 Apps on Windows 7 4 150
symbolic link problem 6 107
Need to Copy files and folders in a batch file 2 90
Exchange & AD management console 2 117
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…
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…
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…

713 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