Page 1 of 1 1
Topic Options
#101318 - 2003-05-24 12:30 AM How to determine local/roaming profile
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Does anyone know a simple method to determine whether a local or roaming profile is in use, and at which stage it can be determined?

The problem is that occasionally (far too often) the anti-virus software on our file server goes mental and consumes all CPU.

During busy logon periods this can degrade the response times for profiles such that the login process will decide that the profile is not available and generate a local profile. This is a major problem as these logins happen on a Citrix farm.

I thought that I'd disabled local profiles, but I guess that in extreme situations they are still created.

Top
#101319 - 2003-05-24 12:42 AM Re: How to determine local/roaming profile
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Tricky !

The only difference between local and roaming profiles per definition is the Place the profile is stored !

Only case you can be 100% sure is the mandatory profile 'ntuser.man' which is in any case a romaing [Roll Eyes]

[ 23. May 2003, 12:43: Message edited by: Jochen ]
_________________________



Top
#101320 - 2003-05-24 12:46 AM Re: How to determine local/roaming profile
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmmm ... hummm ... wasn't there a variable like %ProfilePath% ????

{ [Eek!] %USERPROFILE%! but this is also futile as it indicates the local even if it is a roaming in my case [Frown] }

[ 23. May 2003, 13:04: Message edited by: Jochen ]
_________________________



Top
#101321 - 2003-05-23 01:01 PM Re: How to determine local/roaming profile
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Think the best way is using ADSI to determine the profilepath for the user in question (or maybe even a reskit utility ? )
_________________________



Top
#101322 - 2003-05-23 01:01 PM Re: How to determine local/roaming profile
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Thanks for the responses, but that's not going to help in this case.

The thing is, all the users are configured for roaming profiles and normally this is fine.

When the file server containing the profiles is on a go-slow the local profile is created regardless of the policies I've set.

Preferably I'd deny login access if a local profile is in use, but I'd at least like to be able to issue a warning to support staff.

Top
#101323 - 2003-05-23 01:03 PM Re: How to determine local/roaming profile
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
So then .. If I understood that correctly [Confused] the user variable %USERPROFILE% or it's TS dependant carries the answer, no ?

[ 23. May 2003, 13:05: Message edited by: Jochen ]
_________________________



Top
#101324 - 2003-05-23 01:37 PM Re: How to determine local/roaming profile
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, tested.
with user who had no roam (me) test user with inaccessible profile path and working roaming profile.

the difference with the last 2 was that if the profile was inaccible, the %userprofile% path was:
"C:\documents and settings\TEMP"

and if available it was:
"C:\documents and settings\TESTUSER"
_________________________
!

download KiXnet

Top
#101325 - 2003-05-23 02:16 PM Re: How to determine local/roaming profile
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
In both successful and unsuccessful cases profiles are created under "M:\WTSRV\Profiles", and %USERPROFILE% is set correctly.

Decided a scan of the registry is the only way to go - I was trying to avoid this as the registry gets pretty large on Citrix - I'll let you know...

Top
#101326 - 2003-05-23 02:37 PM Re: How to determine local/roaming profile
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
This looks promising:
quote:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\USERS_SID_HERE
It looks like the "CentralProfile" entry is empty when a local profile is in use.

Now to check when this is set.

Thanks for the suggestions guys.

Top
#101327 - 2003-05-23 02:50 PM Re: How to determine local/roaming profile
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
quote:
created under "M:\WTSRV\Profiles", and %USERPROFILE% is set correctly.
yes...
but is the dir level under profiles same on both cases...
_________________________
!

download KiXnet

Top
#101328 - 2003-05-23 02:54 PM Re: How to determine local/roaming profile
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
quote:
but is the dir level under profiles same on both cases...
Yes.

Top
#101329 - 2003-05-23 03:54 PM Re: How to determine local/roaming profile
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Local profiles listed in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\USERS_SID_HERE

CentralProfile value is empty
ProfileUnloadTimeHigh value does not exist
ProfileUnloadTimeLow value does not exist
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2508 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.066 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org