Solved

Run As Execution

Posted on 2006-06-12
2
213 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
2 Comments
 
LVL 11

Accepted Solution

by:
Expert1701 earned 300 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 200 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now