Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista - Setting environment variables?

Reply
 
Old 06-23-2006   #1 (permalink)
Chaz


 
 

Setting environment variables?

I want to set a permanent environment variable for the currently logged on
user - as far as I can tell this would be done from the Environment Variables
dialog under the Advanced settings of the System control panel.

BUT - I'm a normal user, and can only access the Advanced Settings by
providing Admin credentials. At which point the User variables that can be
set in the dialog are for the admin account that I just authenticated with!

Is there any way I can get round this and set up persistent environment
variables as a non-admin user?


My System SpecsSystem Spec
Old 06-23-2006   #2 (permalink)
Jimmy Brush


 
 

Re: Setting environment variables?

> Is there any way I can get round this and set up persistent environment
> variables as a non-admin user?


Nice bug find!

Yes, you can get around this with the setx command.

- Open a command prompt
- Type: setx variable value

Note, that value must be enclosed in quotes if it contains any spaces.

For example,

setx MYDIR "c:\documents and settings\"

For more info on setx, check out:
http://www.ss64.com/nt/setx.html
http://technet2.microsoft.com/Window...d86331033.mspx

My System SpecsSystem Spec
Old 06-23-2006   #3 (permalink)
Chaz


 
 

Re: Setting environment variables?

"Jimmy Brush" wrote:
> Yes, you can get around this with the setx command.


Doh! Thanks for the pointer.

I hope this kind of bug gets caught over time. I'm sure there are a number
of similar instances where you can't just lock down the entire functionality
of an existing dialog box without breaking something!

My System SpecsSystem Spec
Old 01-17-2009   #4 (permalink)


Ubuntu 8.04 LTS amd64
 
 

How to set environment variables for a non admin user

This is just a Linux fan posting the solution for
an old thread of this forum. Accept my apologies
if it has been already answered in another thread.
Google still links there, and no answer can be
posted as it is too old.

The how-to can be found here, as stated in the
'Microsoft Help and Support' site.

Cheers.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
function to set environment variables PowerShell
Changing system environment variables Vista account administration
Is possible to have alternate TEMP environment variables? Vista General
Environment Variables Vista installation & setup
Setting environment variables Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46