Page 1 of 1 1
Topic Options
#166264 - 2006-08-23 01:06 PM Outlook XP/2003 Exchange - Find out User?
private_meta Offline
Getting the hang of it

Registered: 2006-07-27
Posts: 80
Loc: Austria
I have the following problem:

I want kix to automatically set the exchange account for the specific users, in case they do not exist yet.

As i try to not install the new profile if an old one is already installed i would have to extract the exchange user name from the system

I have tried to solve this with the registry, but opposed to my hopes, the HKEY_CURRENT_USER Entry (HKCU\Software\Microsoft\Windows NT\Windows Messaging Subsystem\Profiles) has the profiles of every user in there, so i can't find out if this user made the profile the first time.

Second approach (tried the local profile, application data and local settings) i found out that, in case Outlook is installed freshly there are no outlook folders in your local profile, but as soon as you start outlook and cancel the creation of an account, these folders are created nevertheless. furthermore these files in the folders don't state if you use an exchange server or anything else.

I switched back to the registry and tried to search through the different profiles. Outlook XP had a specific for a user (fitting $userid) but outlook2k3 only had a string with several varialbes, one of them containing the account name in the form "firstname.familyname" and as the $userid in the company is "familyname" + "first letter firstname" i don't know how to convert and subsequently check if this profile exists for the user

Does anyone know any workaround for the problem or can give me hints what i can do here?
_________________________
-=If you absolutly believe you can make up talent with hard work, there is no limit to what you can't achieve.=-

Top
#166265 - 2006-08-23 01:46 PM Re: Outlook XP/2003 Exchange - Find out User?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
The way I do it here is to create a custom transform for Office which automatically creates the profile for a new user.

I've got about 300 users on my Citrix farm and I've never had to manually create a profile for connecting to Exchange.

Of course, you need to start off by installing Office using the transform, so it won't help for your existing Office installations.

Top
#166266 - 2006-08-23 01:54 PM Re: Outlook XP/2003 Exchange - Find out User?
private_meta Offline
Getting the hang of it

Registered: 2006-07-27
Posts: 80
Loc: Austria
I have the feeling that your implementation doesn't help me.
I need it so that, no matter what user, he gets his exchange account when he logs on to ANY machine. It seems like your implementation just works as a fixed profile (which, to be honest, was almost the easiest part in this)
_________________________
-=If you absolutly believe you can make up talent with hard work, there is no limit to what you can't achieve.=-

Top
#166267 - 2006-08-23 02:10 PM Re: Outlook XP/2003 Exchange - Find out User?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
There are 2 scripts here to make outlook profiles... mine and kdyer (I think)

They have been posted several times

Top
#166268 - 2006-08-23 02:22 PM Re: Outlook XP/2003 Exchange - Find out User?
private_meta Offline
Getting the hang of it

Registered: 2006-07-27
Posts: 80
Loc: Austria
I know that those exist... they helped me to design my own outlook setup script, but i couldn't take it completly (didn't work because of several reasons)
what i need is to find out if there is a profile installed for the local user AND what exchange account name the account has, in case there is one for the local user.
_________________________
-=If you absolutly believe you can make up talent with hard work, there is no limit to what you can't achieve.=-

Top
#166269 - 2006-08-23 02:33 PM Re: Outlook XP/2003 Exchange - Find out User?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

I have the feeling that your implementation doesn't help me.
I need it so that, no matter what user, he gets his exchange account when he logs on to ANY machine. It seems like your implementation just works as a fixed profile (which, to be honest, was almost the easiest part in this)




Why do you think that?

The user information is not hard-coded. When he logs on to any machine the profile is created if it does not already exist.

As I say, the only problem is that you need to have installed Office on those machines with the transform, so it is something you need to have included in your original package deployment.

Top
#166270 - 2006-08-23 02:58 PM Re: Outlook XP/2003 Exchange - Find out User?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Under "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles" there is a "defaultprofile" entry which will point you at the current default profile for the user.
Top
#166271 - 2006-08-23 03:32 PM Re: Outlook XP/2003 Exchange - Find out User?
private_meta Offline
Getting the hang of it

Registered: 2006-07-27
Posts: 80
Loc: Austria
That's the default profile, but it doesn't tell the user that was used for this profile (exchange account name)
_________________________
-=If you absolutly believe you can make up talent with hard work, there is no limit to what you can't achieve.=-

Top
#166272 - 2006-08-23 05:04 PM Re: Outlook XP/2003 Exchange - Find out User?
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Maybe I'm misunderstanding you.

The default profile is the one that the user is going to use - normally you only have one profile active and that id the default profile.

Within each profile there are a number of services, one of which will be exchange.

I'm also confused by an earlier statement:
Quote:

I have tried to solve this with the registry, but opposed to my hopes, the HKEY_CURRENT_USER Entry (HKCU\Software\Microsoft\Windows NT\Windows Messaging Subsystem\Profiles) has the profiles of every user in there



This is not correct. HKCU will only have the profiles of the current logged in user.

Is it the profile that you are trying to find, or the service?

Top
Page 1 of 1 1


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

Who's Online
0 registered and 484 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.058 seconds in which 0.026 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