H
Houman Yahyaei
Hi guys, I posted in the VB Script group several times about a problem that
I had with a script that would set environment variables, but it finally
seems that it's not a script problem...
If I run the script as a normal Logon script on user's account, it works,
but if I run the logon script from a GPO... no good...
The script runs, the variables are set in the registry and visible trough
the user's environment variable window in My
computer\properties\advanced\Environment variable...
But if I go to a cmd and type set... the variables are not known here... If
I go back to the environment variables windows and say ok, the variables
then become available when doing a cmd \ set
Any one has an idea why ???
Thanks !!!
Here is the original post :
*************
need to reload user environment variables after a script is run...
The script adds user environment variables, and they appear to be there, but
not loaded into the system...
I have tried : "%windir%\System32\RUNDLL32.EXE
user32.dll,UpdatePerUserSystemParameters", _
1, True
But it doesn't seem to work...
Can anyone help me...
Or another way, is there a way to open up environment variables windows and
say OK to it within a script ( invisibly I guess )...
Because when this is done manually, it works very well..
****
Thanks !!!
--
I had with a script that would set environment variables, but it finally
seems that it's not a script problem...
If I run the script as a normal Logon script on user's account, it works,
but if I run the logon script from a GPO... no good...
The script runs, the variables are set in the registry and visible trough
the user's environment variable window in My
computer\properties\advanced\Environment variable...
But if I go to a cmd and type set... the variables are not known here... If
I go back to the environment variables windows and say ok, the variables
then become available when doing a cmd \ set
Any one has an idea why ???
Thanks !!!
Here is the original post :
*************
need to reload user environment variables after a script is run...
The script adds user environment variables, and they appear to be there, but
not loaded into the system...
I have tried : "%windir%\System32\RUNDLL32.EXE
user32.dll,UpdatePerUserSystemParameters", _
1, True
But it doesn't seem to work...
Can anyone help me...
Or another way, is there a way to open up environment variables windows and
say OK to it within a script ( invisibly I guess )...
Because when this is done manually, it works very well..
****
Thanks !!!
--