?
Solved

Logon

Posted on 2000-05-17
2
Medium Priority
?
205 Views
Last Modified: 2010-04-02
I am on NT4.0 workstation. I have logged on using my account which has restricted access on resources on a certain machine. I want to access the same machine programmatically while logged on to my account such that I have access to all the file-resources (as if the software was having Administrator privileges on that machine) in the remote machine. Is this possible at all? If so how?
0
Comment
Question by:arvind_cs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
pellep earned 300 total points
ID: 2817277
Use the API functions:
LogonUser() (creates an access-token of the desired user) and
ImpersonateLoggedOnUser() (using the access-token form LogonUser sets the userpriveliges for the calling process)

Check MSDN for details
0
 

Author Comment

by:arvind_cs
ID: 2817858
Thanks.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question