Re: Different profiles on the same PC?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Bingo (anonymous_at_discussions.microsoft.com)
Date: 01/10/05


Date: Mon, 10 Jan 2005 09:51:11 -0800


Thanks a lot! This is exactly what I was looking for.
Thanks

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.

>-----Original Message-----
>"Bingo" <anonymous@discussions.microsoft.com> wrote in
news:117301c4f725
>$ee74a910$a501280a@phx.gbl:
>> If I understand you correctly, I can start multiple
>> copies of the same App, each using a different Outlook
>> profile as long as I set newSession=TRUE in CDO1.21?
>
> That's correct -- you can even have multiple profiles
in the same app:
>
>Private Sub Form_Load()
> Dim s1 As New MAPI.Session
> s1.Logon newSession:=True, profileInfo:="server" &
vbLf & "test1"
> Debug.Print s1.Inbox.Messages.GetLast.Subject
>
> Dim s2 As New MAPI.Session
> s2.Logon newSession:=True, profileInfo:="server" &
vbLf & "test2"
> Debug.Print s2.Inbox.Messages.GetLast.Subject
>End Sub
>
> does what it looks like it'll do.
>
> -- dan
>.
>



Relevant Pages

  • Re: ,Does somebody has a script which clean subdirectories and files
    ... It will take care for case when files do not exist within folders ... > This cleans up the user profiles. ... > Dim strDirectory 'The directory from where the script is running ... > ' Determine the date for removal of aged user profiles ...
    (microsoft.public.scripting.wsh)
  • RE: Delete Old Profiles
    ... Dim oUserProfiles ... Dim oTempFolderSubFolders ... Dim oInternetTempSubFolders ... 'Ask for the number of days the profiles must be. ...
    (microsoft.public.windows.server.scripting)
  • RE: Delete Old Profiles
    ... Dim oUserProfiles ... Dim oTempFolderSubFolders ... Dim oInternetTempSubFolders ... 'Ask for the number of days the profiles must be. ...
    (microsoft.public.windows.server.scripting)
  • Re: Different profiles on the same PC?
    ... When the first session logon is called, ... I use two different profiles. ... I don't quite know why you're getting the login dialog, ... if the VB runtime will work nicely for that sort of thing, either, I ...
    (microsoft.public.outlook.program_vba)
  • RE: Delete Old Profiles
    ... 'get the sub folders or user profile folders ... Dim oUserProfiles ... 'Ask for the number of days the profiles must be. ...
    (microsoft.public.windows.server.scripting)