|
 |
asp_cdo thread: Getting the full name of a user...
Message #1 by "Paula Durán" <pduran@s...> on Thu, 26 Apr 2001 18:09:35
|
|
I hope someone could help me.
I'm trying to get the full name of a user using CDO.
This is my code:
<script language=vbscript>
Dim objSession
Set objSession = CreateObject("MAPI.Session")
objSession.Logon "Paula Durán Trejos", , False
document.write "usuario=" & objSession.CurrentUser
</script>
When I run this code I get the following error E_ACCESSDENIED(8007005)
I tried with the code examples from MSDN, but it always fails.
I read in the MSDN that it's because a Customer attempts to use Visual
Studio to edit an Exchange Script. However I followed the resolution
steps, but it was worked.
What I need it's to get the full name of the user of the computer. If
someone knows how to do it, please post the code.
Thanks.
Message #2 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Mon, 30 Apr 2001 10:35:43 +0100
|
|
Try using the Resolve method
-----Original Message-----
From: Paula Dur=E1n [mailto:pduran@s...]
Sent: Thursday, April 26, 2001 6:24 PM
To: ASP CDO
Subject: [asp_cdo] Getting the full name of a user...
I hope someone could help me.
I'm trying to get the full name of a user using CDO.
This is my code:
<script language=3Dvbscript>
Dim objSession
Set objSession =3D CreateObject("MAPI.Session")
objSession.Logon "Paula Dur=E1n Trejos", , False
document.write "usuario=3D" & objSession.CurrentUser
=09
</script>
When I run this code I get the following error E_ACCESSDENIED(8007005)
I tried with the code examples from MSDN, but it always fails.
I read in the MSDN that it's because a Customer attempts to use Visual
Studio to edit an Exchange Script. However I followed the resolution
steps, but it was worked.
What I need it's to get the full name of the user of the computer. If
someone knows how to do it, please post the code.
Thanks.
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
Message #3 by =?iso-8859-1?Q?Paula_Dur=E1n_Trejos?= <pduran@s...> on Mon, 30 Apr 2001 07:54:55 -0600
|
|
Could you show me the code?
Paula Dur=E1n Trejos
Departamento de Desarrollo
SUGEF
Tel=E9fono 243-4903
-----Mensaje original-----
De: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]
Enviado el: Lunes 30 de Abril de 2001 3:36 AM
Para: ASP CDO
Asunto: [asp_cdo] RE: Getting the full name of a user...
Try using the Resolve method
-----Original Message-----
From: Paula Dur=E1n [mailto:pduran@s...]
Sent: Thursday, April 26, 2001 6:24 PM
To: ASP CDO
Subject: [asp_cdo] Getting the full name of a user...
I hope someone could help me.
I'm trying to get the full name of a user using CDO.
This is my code:
<script language=3Dvbscript>
Dim objSession
Set objSession =3D CreateObject("MAPI.Session")
objSession.Logon "Paula Dur=E1n Trejos", , False
document.write "usuario=3D" & objSession.CurrentUser
=09
</script>
When I run this code I get the following error E_ACCESSDENIED(8007005)
I tried with the code examples from MSDN, but it always fails.
I read in the MSDN that it's because a Customer attempts to use Visual
Studio to edit an Exchange Script. However I followed the resolution
steps, but it was worked.
What I need it's to get the full name of the user of the computer. If
someone knows how to do it, please post the code.
Thanks.
________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com
|
|
 |