Page 1 of 1 1
Topic Options
#114051 - 2004-02-16 12:29 PM Run program as Administrator
Curious Offline
Getting the hang of it

Registered: 2004-02-16
Posts: 61
Hi!

How can I get an ordinary user to run a program as an administrator? (like 2000-runas). This is intended to use in the users logon-script to install some programs that need to be administrator to get installed properly.

_________________________
I was placed on earth to do a job. Right now I have so much to do, I will never die..

Top
#114052 - 2004-02-16 12:51 PM Re: Run program as Administrator
Richie19Rich77 Offline
Seasoned Scripter
*****

Registered: 2002-08-16
Posts: 624
Loc: London, England
Please do a search on RunAs, I must warn you that this is bad security.

No matter how hard you try to encrypt your password, there is always a risk.

Look at Scheduled Tasks for a more secure way.

Thanks

Top
#114053 - 2004-02-16 12:53 PM Re: Run program as Administrator
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Search the forums for lots of information about how to do this.

The best solution at present is to schedule a task from a central server which performs the install - this avoids ever having the administrator password in the users context.

Top
#114054 - 2004-02-16 02:27 PM Re: Run program as Administrator
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Use Taskscheduler to run a task=script with an admin account. Search the board and you find lots of topics. Search also the UDF library. You find a number of Task scheduler UDF's
_________________________
Co


Top
#114055 - 2004-02-16 02:29 PM Re: Run program as Administrator
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Sorry, Richard(H)didn't saw your post...
_________________________
Co


Top
#114056 - 2004-02-16 04:42 PM Re: Run program as Administrator
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
And read the FAQ Forum as we have an FAQ on this!
_________________________
There are two types of vessels, submarines and targets.

Top
#114057 - 2004-02-25 12:11 PM Re: Run program as Administrator
Curious Offline
Getting the hang of it

Registered: 2004-02-16
Posts: 61
I see the point in using scheduled tasks! But this solution is only usable on computers which already have scheduler present, right? What about Nt4-machines? If I have to install scheduler first then this is getting to many steps.

I am sorry if this issue has been discussed before, but I'm a little confused about this.

Jon
_________________________
I was placed on earth to do a job. Right now I have so much to do, I will never die..

Top
#114058 - 2004-02-25 01:37 PM Re: Run program as Administrator
Co Offline
MM club member
***

Registered: 2000-11-20
Posts: 1342
Loc: NL
Quote:

Appendix: How to Install Task Scheduler
a. Windows 98 and Windows 2000/XP:

Nothing to do ! The task scheduler is already preinstalled on your Windows system !

b. Windows 95

On Win 95 / NT the task scheduler is not preinstalled, but you can easily install Task Scheduler through Internet Explorer 4.0 or higher. To install Task Scheduler under Windows 95, proceed as if running Windows NT4 (see below). Note: Windows 95 Plus! contains a product called System Agent. This is not the same product.

c. Windows NT4 (SP3+)

Go to the Control Panel and select Add/Remove Programs. Select Microsoft Internet Explorer 4 or 5 from the list, and when a dialog prompt you for what to do, select Add a component. Depending on the current release of your browser (4 or 5), you will eventually be given a list of additional software
you may install (Note: this may take a long time!). With IE4 you should select Task Scheduler under Additional Explorer Enhancements. With IE5 select the Offline Browsing Pack. You can also go directly to <http://www.microsoft.com/windows/ie>. From here you can select all IE software releases and add-ons. We recommend you upgrade to IE5. We've had a lot of problems reported about upgrading IE4, you would probably be better off installing IE5 anyway (it's a much better
browser). Click Yes to restart your computer when prompted.

Remark: If you are a Netscape supporter, do not worry: It is not necessary to install the shell integration component or or use Internet Explorer as your your default browser for the task scheduler to work. The task scheduler is a (more or less) independent piece of software that just happened to be be distributed via the Internet Explorer packages.


_________________________
Co


Top
#114059 - 2004-02-26 01:26 AM Re: Run program as Administrator
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Quote:

If I have to install scheduler first then this is getting to many steps.



that's the price to pay for a secure network. Sure beats the step you need to do once the network is compromised.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 857 anonymous users online.
Newest Members
JimDunn, fgarcia, Viginette, ManuvdWielNL, Sir_Barrington
17890 Registered Users

Generated in 0.058 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org