Re: set permanent env thru CLI
From: Matt Scarborough (vexversa_at_verizon.net)
Date: 06/11/03
- Next message: bob: "ntbackup"
- Previous message: DOH2003: "Registry is unalterable, says see Admin, I AM ADMIN"
- In reply to: Michael Whang: "set permanent env thru CLI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 11 Jun 2003 04:08:39 +0000
On Tue, 10 Jun 2003 12:03:28 -0700, Michael Whang wrote
<045f01c32f82$f9f98880$a101280a@phx.gbl>
> I need to change the environment variable on a remote
> machine that I am telnetting to, but the changes are not
> permanent. When I reboot the remote machine, the old
> environment is still active. Can anyone tell me how to
> make these changes permanent? Should i be using a switch
> i dont know about, or a command after I make the changes?
System environment variables are stored in
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
and require Administrator permissions to modify.
>From telnet
echo REGEDIT4 >C:\newenv.reg
echo. >>C:\newenv.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment] >>C:\newenv.reg
echo "NewValue"="value" >>C:\newenv.reg
echo. >>C:\newenv.reg
regedit /s C:\newenv.reg
- Next message: bob: "ntbackup"
- Previous message: DOH2003: "Registry is unalterable, says see Admin, I AM ADMIN"
- In reply to: Michael Whang: "set permanent env thru CLI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|