#173660 - 2007-02-05 10:58 PM
Enviorment Variables
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
Hi All,
I'm having a problem with something that seems so simple.
Here is the part of my script giving me troubles:
If NOT Exist ("U:\Temp")
Shell '%comspec% /c md "U:\temp"'
Endif
Set "TEMP=U:\TEMP"
Set "TMP=U:\TEMP"
So basically, we are using citrix and creating a Drive letter for users to login and have their own documents&settings folder mapped to it. The problem lies in the Enviroment Variables.
Even though the U drive is there with the temp folder. It doesn't set these variables correctly. They still point at C:\temp.
Since they don't have access to the C drive, they are getting error messages with some program that need this. After 4 login attempts these changes finally take place. It's almost as if windows 2003 server is still working on building something in to the profile and so it doesn't make these changes.
The users having the troubles are simply windows "Users".
Does anyone know what might be going on??
Thanks!
Faithful
|
Top
|
|
|
|
#173667 - 2007-02-06 02:00 AM
Re: Enviorment Variables
[Re: Witto]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
No, it's pointing to C:\Temp even though I am trying to set it to U:\temp. It does seem to finally work after about 4 logins.
Does anyone have any ideas on this matter?
Thanks!
Faithful
|
Top
|
|
|
|
#173732 - 2007-02-07 06:23 PM
Re: Enviorment Variables
[Re: Les]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
We are converting from W2k servers and have just got 4 new W2k3 servers. This is how we were setup with the W2k servers, but this is not working properly with W2k3.
Here is a part of our KixScript:
;***********************************************************
; Setup the users working Root drive for their session U:\
;***********************************************************
;
;
SetConsole ("HIDE")
;
;***********************************************************
; Setup the users working Root drive for their session U:\
;***********************************************************
;
$root="U:"
$sub="C:\documents and settings\@userid"
;
;
Use U: /delete
Shell '%comspec% /c subst "$root" "$sub"'
;
;******************************************************************************************
;Create User Temp Directory in U:\
;******************************************************************************************
;
If NOT Exist ("U:\Temp")
Shell '%comspec% /c md "U:\temp"'
Endif
;
Set "TEMP=U:\TEMP\"
Set "TMP=U:\TEMP\"
Are you saying that W2k3 is incapable of doing this? Why does it work sometimes? Thanks!
Faithful
|
Top
|
|
|
|
#173734 - 2007-02-07 07:00 PM
Re: Enviorment Variables
[Re: Shawn]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
What do you mean by not "bullet-proof" ??
|
Top
|
|
|
|
#173737 - 2007-02-07 07:25 PM
Re: Enviorment Variables
[Re: Shawn]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
Good point! ... So any idea why the enviromental variable doesn't always map correctly on W2k3?
Thanks!
Faithful
|
Top
|
|
|
|
#173741 - 2007-02-07 08:22 PM
Re: Enviorment Variables
[Re: Shawn]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
I have been displaying the %temp% before and after I make the changes. But this hasn't been helpful so far. I'll try your idea, if anything else comes to mind, please let me know.
Faithful
|
Top
|
|
|
|
#173742 - 2007-02-07 08:55 PM
Re: Enviorment Variables
[Re: Faithfulman]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
So far no dice. ... Nothing seems to error out.
|
Top
|
|
|
|
#173743 - 2007-02-07 09:14 PM
Re: Enviorment Variables
[Re: Faithfulman]
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
What Shawn is saying is, strategically place ? var to see what is happening as it happens. If you post your entire script it might be easier for us to help you.
Edited by Benny69 (2007-02-07 09:15 PM)
|
Top
|
|
|
|
#173745 - 2007-02-07 10:26 PM
Re: Enviorment Variables
[Re: Les]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
Hi Guys,
We are using ? var to see what is happening. So far, it hasn't helped. As for your comment Les, We do have "Use temporary folders per session" set to "Yes". Problem still exists every once in a while.
|
Top
|
|
|
|
#173809 - 2007-02-09 07:10 PM
Re: Enviorment Variables
[Re: Faithfulman]
|
Faithfulman
Getting the hang of it
Registered: 2005-02-22
Posts: 68
|
This is still happening every day for the first few logins and then the problem dissappears.
We have been told by the outside company who installed the new servers that their could be a conflict with one of the following things.
1. Primary DC is running Windows 2000 SP3 and Secondary DC is running Windows 2000 SP4 which are running DFS. (Even though this isn't causing a problem with our Windows 2000 Citrix Servers)
2. Incompatibilty between Windows 2003 servers (New Citrix Servers) and the Windows 2000 DC's.
Does this make sense to anyone out there? Or does this sound like someone blowing smoke?
Thanks!
Faithful
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 569 anonymous users online.
|
|
|