?
Solved

Run As Execution

Posted on 2006-06-12
2
Medium Priority
?
219 Views
Last Modified: 2010-04-16
I have an application with which I am going to be coding some .NET 2.0 usage.  My problem is the way my network is currently set up.  Of course I need to have the 2.0 runtime installed on every machine that the application will run on, so that is where my problem is.  Right now, my network is set up as follows.

All machines have hard coded ip address.
Users do not have rights to install.
Members of a domain which I am administrator to.

My question is how can I automate the install of the 2.0 runtime.  I thought about having my application initiate the install, but the users do not have admin rights.  Is there any way that the application can run an executable with admin rights, sort of like the "run as" option you get when left clicking some executables.  Any suggestions would be appreciated.

Thanks,
Kendal
0
Comment
Question by:gvector1
[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 11

Accepted Solution

by:
Expert1701 earned 1200 total points
ID: 16887021
If your domain is using Active Directory (Windows Server 2000, or 2003), you can use the following technique:

  Deploying the .NET Framework 2.0 Using Active Directory (Windows 2000 Server)
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/ndp2_dplad.asp
0
 
LVL 18

Assisted Solution

by:Ravi Singh
Ravi Singh earned 800 total points
ID: 16888313
Hi, you can make a Win API call to the CreateProcessWithLogonW function (RunAs uses the same function). It'll run the specified executable under the domain/username/password specified. There's a C# wrapper class for it here:

http://www.thecodeproject.com/csharp/RunAs.asp
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

743 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