Re: Different profiles on the same PC?

From: Dan Mitchell (djmitchella_at_yahoo.com)
Date: 01/10/05


Date: Mon, 10 Jan 2005 13:35:57 -0800


"Bingo" <anonymous@discussions.microsoft.com> wrote in news:1bcc01c4f73c
$f8b9a170$a401280a@phx.gbl:
> One quick follow-up. I modified your code to test with
> two others' profiles. I logged on the network as
> myself. When the first session logon is called, a dialog
> box pops up asking asking for the uid and password. Once
> the logon is verified, the second session logon does not
> pop up the dialog. I use two different profiles. Why
> does this happen? Thanks.

 Ah, this stuff is only easy as long as all the mailboxes you're trying
to log in to are accessible to the currently logged in user. When that
changes, things get complicated..

 I don't quite know why you're getting the login dialog, I don't see
that in my environment so there's something different in your setup, but
what's going on is that when you log in, that thread of execution is now
going to be authenticated as the person you first logged in as.

 When you try and log in as the second person from the same thread,
there's two things that can happen -- either it can keep the thread
running as the first user you entered userid/pw for, in which case the
second person won't work -- or it could ask you to re-authenticate as
the second person, which would break the first person's login.

 It looks like it's the former that's happening. There's no way around
this -- you can use the LogonUser/ImpersonateLoggedOnUser APIs to change
the login identity of a thread from code, but each thread can only be
one person at once.

 I don't know how you'd do multiple threads in VB, sorry, you'd be
better off asking in one of the VB newsgroups for that (and I don't know
if the VB runtime will work nicely for that sort of thing, either, I
only know the basics there).

 Alternative 2: you could run multiple instances of your app, one for
each person you need to be logged in as. Possibly the easiest solution.

 Alternative 3: log in as some sort of administrator who can open
everyone's mailbox. Maybe easy, maybe not, depends on if you have the
power to do that sort of thing yourself. Where I work, I sure don't..

 -- dan



Relevant Pages

  • Re: Single Desktop?
    ... you can use roaming profiles & folder redirection (for My ... This requires that your workstations ... without having to go to the particular workstation, and login as ... have to setup email accounts for every different possible login. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: RWW Default Profiles
    ... all login should happen to the domain, ... That of 'roaming' vs 'local' profiles. ... Administrator account and a user called 'setup' created at initial login ... Jay is not currently using roaming profiles ...
    (microsoft.public.windows.server.sbs)
  • Re: Recording and/or logging XP Login duration and activity
    ... X amount of time to the login duration. ... Any roaming profiles involved? ... Well - you could timestamp their logon scripts. ... CPU usage stays below a certain number? ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Establishing a minor or major feel
    ... The main book I've learnt "theory" from is Jai Josefs "Writing Music ... I realise that the profiles alone are not enough to ... In my own defence, I had learnt about different minor keys, but this ... info had sort of slipped my mind though lack of use over the last few ...
    (rec.music.theory)
  • Problem with WinXP profiles
    ... If I login first others cannot seem to login after when I try to ... can log in but I may have a problem logging in. ... I thought that it might be spy ware or malware or a virus so I ... was working fine in the other four profiles I have on the machine. ...
    (microsoft.public.windowsxp.help_and_support)