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

x
?
Solved

How to edit environment variables without Admin Rights.

Posted on 2010-11-17
7
Medium Priority
?
2,525 Views
Last Modified: 2012-05-10
How to edit environment variables without Admin Rights.
0
Comment
Question by:raghu8329
[X]
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
7 Comments
 
LVL 49

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

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

0
 

Author Closing Comment

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

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