Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > Setting environment variables?

Reply
Thread Tools Display Modes

Setting environment variables?

 
 
Chaz
Guest
Posts: n/a

 
      06-23-2006
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?

 
Reply With Quote
 
 
 
 
Jimmy Brush
Guest
Posts: n/a

 
      06-23-2006
> 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

 
Reply With Quote
 
Chaz
Guest
Posts: n/a

 
      06-23-2006
"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!

 
Reply With Quote
 
Old Holborn
Guest
Posts: n/a

 
      01-18-2009

This is just a Linux fan posting the solution for
an 'old thread of this forum'
(http://www.vistax64.com/vista-accoun...variables.html).
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'
(http://support.microsoft.com/kb/931715), as stated in the
'Microsoft Help and Support' site.

Cheers.


--
Old Holborn
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting java class variables mmiked8162 Windows Vista General Discussion 2 03-27-2008 03:25 PM
Vista system-path variables dave0003 Windows Vista Administration 1 11-08-2007 02:47 AM
Is possible to have alternate TEMP environment variables? Juan I. Cahis Windows Vista General Discussion 10 09-02-2007 02:14 AM
Environment Variables Arne Windows Vista Installation 5 05-25-2007 03:06 PM
Setting environment variables Call me Bill Windows Vista General Discussion 2 09-07-2006 08:54 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59