Which means "access denied".
You have to impersonate using a privileged account's credentials (like a
domain admins, or enterprise admins account).
Willy.
I'm using the Administrator account which is a member of the Domain Admins
and still it's returning an error of 5. What seems awkward is that when I'm
using the same account to connect to the same server through mstsc.exe, its
creating a successful terminal session.
Chris
> Which means "access denied".
> You have to impersonate using a privileged account's credentials (like a
[quoted text clipped - 11 lines]
>>>
>>> Mattias
Willy Denoyette [MVP] - 08 Jan 2005 10:28 GMT
Should work, try using a DC administrator account.
- check the eventlog (turn on auditing).
- check your accounts privileges.
Willy.
> I'm using the Administrator account which is a member of the Domain Admins
> and still it's returning an error of 5. What seems awkward is that when
[quoted text clipped - 18 lines]
>>>>
>>>> Mattias
Christopher Attard - 10 Jan 2005 08:47 GMT
Thanks Willy...problem solved. Infact i was running the call in the security
context of a non-administrative account.
Chris
> Should work, try using a DC administrator account.
> - check the eventlog (turn on auditing).
[quoted text clipped - 24 lines]
>>>>>
>>>>> Mattias